[NL] Created Cars - 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: [NL] Created Cars (
/showthread.php?tid=78458)
[NL] Created Cars -
Jokerr_mayne - 20.05.2009
I have a problem...
i have copy a script, i dont now where i have that done;'p
But there are 4 errors on 1 line. >.<
Here is it.
Quote:
//------------------[Destroycars]-----------------//
if(strcmp(cmd, "/destroycars", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] < 4)
{
SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!");
return 1;
}
for(new i = 0; i < sizeof(CreatedCars); i++)
{
if(i != 0)
{
DestroyVehicle(i);
}
}
SendClientMessage(playerid, COLOR_GREY, " Created Vehicles destroyed !");
}
return 1;
}
|
And the errors:P
Re: [NL] Created Cars -
Castle - 20.05.2009
Which Script are you using?
Re: [NL] Created Cars -
Correlli - 20.05.2009
Looks like you just copied the command, you haven't defined anything.