10.03.2011, 06:42
(
Последний раз редактировалось Davz*|*Criss; 10.03.2011 в 07:45.
)
Hey i am trying to make an command for rcon admin, to reset all vehicles.
So here is 1 error, i don't know how to fix it, So i may need your help.
Error:-
Code:-
So here is 1 error, i don't know how to fix it, So i may need your help.
Error:-
pawn Код:
C:\Users\Davz\Desktop\Dadmin.pwn(48) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/Resetvehicles", cmdtext) == 0)
{
if(IsPlayerAdmin(playerid)) SendClientMessageToAll(0xFFFF00AA, "An Admin has reseted all vehicles.");
for(new i = 0; i < MAX_VEHICLES; i++)
{
SetVehicleToRespawn(i);
}
else SendClientMessage(playerid, 0xFFFF00AA, "You're not an admin");
return 1;
}
return 0;
}