[NL] Created Cars
#1

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


Reply
#2

Which Script are you using?
Reply
#3

Looks like you just copied the command, you haven't defined anything.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)