Deleting Specific Vehicle ID 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: Deleting Specific Vehicle ID Problem (
/showthread.php?tid=167624)
Deleting Specific Vehicle ID Problem -
jeff223 - 13.08.2010
Код:
#include <a_samp>
if(strcmp("/addecarid", cmd, true) == 0)
{
if (AdminLevel[playerid] != 1)
{
SendClientMessage(playerid, white, "SERVER: Unknown Command");
return 1;
}
else
{
tmp = strtok(cmdtext,idx);
DestroyVehicle(tmp);
}
return 1;
}
And I'm getting this:
Код:
C:\Users\Gamer\Desktop\deletecarid.pwn(3) : error 010: invalid function or declaration
C:\Users\Gamer\Desktop\deletecarid.pwn(6) : error 010: invalid function or declaration
C:\Users\Gamer\Desktop\deletecarid.pwn(9) : error 010: invalid function or declaration
C:\Users\Gamer\Desktop\deletecarid.pwn(11) : error 010: invalid function or declaration
C:\Users\Gamer\Desktop\deletecarid.pwn(16) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.
Can anyone help me with this? Thanks in advance.
Re: Deleting Specific Vehicle ID Problem -
marharth - 13.08.2010
that is only part of your script right?
Re: Deleting Specific Vehicle ID Problem -
willsuckformoney - 13.08.2010
No i believe that's his whole script.
Re: Deleting Specific Vehicle ID Problem -
marharth - 13.08.2010
If its his whole script then he is making the basic script wrong, he doesn't have any callbacks...
Re: Deleting Specific Vehicle ID Problem -
jeff223 - 13.08.2010
No. It's only part of it.
Re: Deleting Specific Vehicle ID Problem -
willsuckformoney - 13.08.2010
mind showing us line
3
9
11
16
Re: Deleting Specific Vehicle ID Problem -
ikey07 - 13.08.2010
I already see one mistake
tmp = strtok(cmdtext,idx);
DestroyVehicle(tmp);
and where is strval(tmp); ?
tmp is a string, not a decimal