SA-MP Forums Archive
Unexpected Token - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Unexpected Token (/showthread.php?tid=126214)



Unexpected Token - too803 - 07.02.2010

I get this errors

C:\Documents and Settings\Admin\Desktop\server\filterscripts\jobs2. pwn(822) : error 001: expected token: ",", but found "-rational value-"
C:\Documents and Settings\Admin\Desktop\server\filterscripts\jobs2. pwn(822) : warning 215: expression has no effect
C:\Documents and Settings\Admin\Desktop\server\filterscripts\jobs2. pwn(822) : error 001: expected token: ";", but found "-rational value-"
C:\Documents and Settings\Admin\Desktop\server\filterscripts\jobs2. pwn(822) : warning 215: expression has no effect
C:\Documents and Settings\Admin\Desktop\server\filterscripts\jobs2. pwn(822) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Admin\Desktop\server\filterscripts\jobs2. pwn(822) : fatal error 107: too many error messages on one line


when i changed the coords on this two scripts

if(strcmp(cmd, "/hphq", true) == 0) { // teles the cop back to the StatePolice spawn!
if(gTeam[playerid] == TEAM_SP)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2091.621 2484.9 11.07813,);
}
else
{
SendClientMessage(playerid, COLOR_RED1, "You Are not even a Highway Patrolsman");
}
return 1;
}





and


if(strcmp(cmd, "/highway", true) == 0) {
SendClientMessage(playerid, COLOR_GREY, "You Are Now an offcial Highway Patrol Man!!");
gTeam[playerid] = TEAM_SP;
SetPlayerColor(playerid, COLOR_GREY);
SetPlayerPos(playerid, 2091.621 2484.9 11.07813,);
GivePlayerWeapon(playerid, 24, 400);
GivePlayerWeapon(playerid, 3, 1);
SetPlayerSkin(playerid, 280);
return 1;
}



Re: Unexpected Token - UsaBoy91 - 07.02.2010

SetPlayerPos(playerid, 2091.621, 2484.9 ,11.07813,);


Re: Unexpected Token - ettans - 07.02.2010

Place commas between coordinates.

You have SetPlayerPos(playerid, 2091.621 2484.9 11.07813,);, but you need SetPlayerPos(playerid, 2091.621, 2484.9, 11.07813); and remove the comma after the final coord.


Re: Unexpected Token - too803 - 07.02.2010

I failed epicly,forgive me,its 10 in the morning