![]() |
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" |
The editor option for testing code errors does not work with GS2. Clientside it and the setfocus should be setfocus(30,30);
|
...and your GS2 scripts will not work in the editor either. You will need to test them online.
|
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.
|
Quote:
Sumed two peoples post into 1! |
Quote:
|
Quote:
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.