SA-MP Forums Archive
robbery - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: robbery (/showthread.php?tid=481517)



robbery - rober98 - 16.12.2013

public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
cp_Pizza = CreateDynamicCP( 378.2259, -114.4946, 1001.4922, 2.0, .interiorid = 5);
return 1;
}

public OnPlayerEnterDynamicCP( playerid, checkpointid )
{
if( pRobbingP[ playerid ] )
{
if ( checkpointid == cp_Pizza )
{
pRobbingP[ playerid ] = false;
KillTimer( robTimerP[ playerid ] );
pizzaRobbed = false;
GameTextForPlayer( playerid, "~r~You have failed the robbery!", 1000, 3 );
}
}
return true;

I got this errors :

C:\Users\rober\Desktop\server\filterscripts\pizzar obbery.pwn(45) : error 017: undefined symbol "cp_Pizza"
C:\Users\rober\Desktop\server\filterscripts\pizzar obbery.pwn(51) : error 017: undefined symbol "pRobbingP"
C:\Users\rober\Desktop\server\filterscripts\pizzar obbery.pwn(51) : warning 215: expression has no effect
C:\Users\rober\Desktop\server\filterscripts\pizzar obbery.pwn(51) : error 001: expected token: ";", but found "]"
C:\Users\rober\Desktop\server\filterscripts\pizzar obbery.pwn(51) : error 029: invalid expression, assumed zero
C:\Users\rober\Desktop\server\filterscripts\pizzar obbery.pwn(51) : fatal error 107: too many error messages on one line