SA-MP Forums Archive
Another Boring Topic - 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: Another Boring Topic (/showthread.php?tid=78386)



Another Boring Topic - Jokerr_mayne - 19.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
Quote:

penls.pwn(1628 : error 017: undefined symbol "CreatedCars"
penls.pwn(1628 : error 036: empty statement
penls.pwn(1628 : error 017: undefined symbol "i"
penls.pwn(1628 : fatal error 107: too many error messages on one line

4 Errors




Re: Another Boring Topic - Franjdea - 19.05.2009

It looks like theres a function to go with that script called CreatedCars