24.02.2012, 18:33
Hi,
I'm currently helping a friend with his server and he wanted me to script the /respawncars command
so I this is what I have scripted:
And I receive the following errors:
I can't seem to fix this command. I've tried so many things and It still gives errors. Can anyone help me with this one ?
I'm currently helping a friend with his server and he wanted me to script the /respawncars command
so I this is what I have scripted:
pawn Code:
if(strcmp(cmdtext, "/respawncars", true) == 0)
{
if (IsPlayerAdmin(playerid))
{
for(new i=0;i<MAX_VEHICLES;i++)
{
if(IsVehicleOccupied(i) == 0)
{
SetVehicleToRespawn(i);
}
}
SendClientMessageToAll(COLOR_RED, "All vehicles has been respawned!");
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You are not RCON Admin");
}
return 1;
}
Code:
error 017: undefined symbol "IsVehicleOccupied"