/respawncar problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /respawncar problem (
/showthread.php?tid=247811)
/respawncar problem -
Paul.eboy - 10.04.2011
When I add this
Код:
if(strcmp(cmd, "/respawnvehicles", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 5)
{
for(new i=0;i<MAX_VEHICLES;i++)
{
if(IsVehicleOccupied(i) == 0)
{
SetVehicleToRespawn(i);
}
}
format(string, sizeof(string), "[INFO:] Unoccupied vehicles respawned by %s.", GetPlayerNameEx(playerid));
SendClientMessageToAll(COLOR_ADMINCMD, string);
}
else
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "Your not an administrator.");
}
return 1;
}
It gisplays me these errors
Код:
E:\games\sa-mp\cls\CLSREL~1.5FI\GAMEMO~1\jasons13.pwn(8454) : error 010: invalid function or declaration
E:\games\sa-mp\cls\CLSREL~1.5FI\GAMEMO~1\jasons13.pwn(8456) : error 010: invalid function or declaration
E:\games\sa-mp\cls\CLSREL~1.5FI\GAMEMO~1\jasons13.pwn(8458) : error 010: invalid function or declaration
E:\games\sa-mp\cls\CLSREL~1.5FI\GAMEMO~1\jasons13.pwn(8460) : error 010: invalid function or declaration
E:\games\sa-mp\cls\CLSREL~1.5FI\GAMEMO~1\jasons13.pwn(8468) : error 010: invalid function or declaration
E:\games\sa-mp\cls\CLSREL~1.5FI\GAMEMO~1\jasons13.pwn(8472) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
6 Errors.
Why is that?
Re: /respawncar problem -
Shelby - 10.04.2011
I tested your code, here it compiled successfully.
Re: /respawncar problem -
Paul.eboy - 11.04.2011
I've done it.
Thanks to [SRC]stuntman
TC please