robbery
#1

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
Reply


Messages In This Thread
robbery - by rober98 - 16.12.2013, 01:48

Forum Jump:


Users browsing this thread: 1 Guest(s)