Filterscript error
#1

Error:
error 001: expected token: ";", but found "return"

Script:

public OnGameModeInit()
{
SetGameModeText("Gates script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
gate = CreateObject(980,-1545.7998000,-430.7002000,7.8000000,0.0000000,0.0000000,314.7470 000);
return 1;
}
Reply
#2

With your code, I get error 001: expected token: ",", but found "-integer value-" because of the space in the last floating-point number:
Код:
gate = CreateObject(980,-1545.7998000,-430.7002000,7.8000000,0.0000000,0.0000000,314.7470 000);
which should have been 314.7470 or 314.7470000
Reply
#3

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
With your code, I get error 001: expected token: ",", but found "-integer value-" because of the space in the last floating-point number:
Код:
gate = CreateObject(980,-1545.7998000,-430.7002000,7.8000000,0.0000000,0.0000000,314.7470 000);
which should have been 314.7470 or 314.7470000
Deleted zeros , still return problem , any other solutions?>
Reply
#4

SOLVED.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)