SA-MP Forums Archive
Help me - 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)
+--- Thread: Help me (/showthread.php?tid=638128)



Help me - hassan12345 - 27.07.2017

Quote:

case 2:
{
randomspawn = random(sizeof(gAfghanistanSpawn));
SetPlayerPos(playerid, gAfghanistanSpawn[randomspawn][0], gAfghanistanSpawn[randomspawn][1], gAfghanistanSpawn[randomspawn][2]);
SetPlayerFacingAngle(playerid, gAfghanistan[randomspawn][3]); // this is 2617
}

Please Help me fix the following :
C:\Call Of Duty -\gamemodes\test123.pwn(2617) : error 017: undefined symbol "gAfghanistan"
C:\Call Of Duty -\gamemodes\test123.pwn(2617) : warning 215: expression has no effect
C:\Call Of Duty -\gamemodes\test123.pwn(2617) : error 001: expected token: ";", but found "]"
C:\Call Of Duty -\gamemodes\test123.pwn(2617) : error 029: invalid expression, assumed zero
C:\Call Of Duty -\gamemodes\test123.pwn(2617) : fatal error 107: too many error messages on one line


Re: Help me - coool - 27.07.2017

"gAfghanistanSpawn" is not defined you have to define it, the error is self explanatory


Re: Help me - hassan12345 - 28.07.2017

Can u fix the code for me please! other teams got the same code they work fine but this one doesnt