14.08.2014, 19:36
Got these errors:
Line:
In this part: [Error part]
pawn Код:
filterscripts\robberyx2.pwn(65) : warning 217: loose indentation
filterscripts\robberyx2.pwn(65) : error 017: undefined symbol "time"
filterscripts\robberyx2.pwn(65) : error 017: undefined symbol "time"
filterscripts\robberyx2.pwn(65) : error 029: invalid expression, assumed zero
filterscripts\robberyx2.pwn(65) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
pawn Код:
format(time,sizeof(time),"Robbery Time: %d",ROBBING_PIZZA[i]);
pawn Код:
CMD:robpizza(playerid, params[])
{
if(!IsPlayerInDynamicCP(playerid, CP_pizza)) return SendClientMessage(playerid, COLOR_RED,"You are not in ....");
{
if(pizzarobbedrecently >=1) //checking if tatoo shop has been robbed recently
{
SendClientMessage(playerid, COLOR_RED, "Well Stacked Pizza has been robbed recently"); // sending error message
}
ROBBING_PIZZA[playerid] = 60; // setting the robbery timer
pizzarobbedrecently =180; // Time the players needs to wait for starting an another robbery in the same place
Error part: format(time,sizeof(time),"Robbery Time: %d",ROBBING_PIZZA[i]);
GameTextForPlayer(i,time,1000,5);
}
return 1;
}