Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   GS2 problem (https://forums.graalonline.com/forums/showthread.php?t=66670)

jailbird 06-14-2006 03:39 AM

GS2 problem
 
i was converting a spar level into gs2 and came across this problem

function onPlayerchats(){
if (player.chat=="focus on") {
setfocus 30,30;}
}

seems that the player.chat line cant have spaces with in the " "

heres the error:

Error: Flags and variables cannot contain spaces!
and it highlights "focus on"

Luigi203 06-14-2006 03:44 AM

The editor option for testing code errors does not work with GS2. Clientside it and the setfocus should be setfocus(30,30);

VulcanP2P 06-14-2006 06:35 AM

...and your GS2 scripts will not work in the editor either. You will need to test them online.

Bl0nkt 06-14-2006 06:50 AM

The offline editor doesn't recognize GS2. Change setfocus 30 30; to setfocus(30, 30); and it will be correct apart from the necessity of it being clientside.

KuJi 06-17-2006 01:30 AM

Quote:

Originally Posted by Bl0nkt
The offline editor doesn't recognize GS2. Change setfocus 30 30; to setfocus(30, 30); and it will be correct apart from the necessity of it being clientside.

Eeh, your smart hachi :p.

Sumed two peoples post into 1!

ApothiX 06-17-2006 01:38 AM

Quote:

Originally Posted by KuJi
Eeh, your smart hachi :p.

Sumed two peoples post into 1!

Not even that, mag said didn't work in the editor aswell.

KuJi 06-17-2006 02:09 AM

Quote:

Originally Posted by ApothiX
Not even that, mag said didn't work in the editor aswell.

Ahh, then what I ment to say is:
You repeated a post hachi!


All times are GMT +2. The time now is 12:47 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.