Deleting Specific Vehicle ID Problem
#1

Код:
#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.
Reply
#2

that is only part of your script right?
Reply
#3

No i believe that's his whole script.
Reply
#4

If its his whole script then he is making the basic script wrong, he doesn't have any callbacks...
Reply
#5

No. It's only part of it.
Reply
#6

mind showing us line

3
9
11
16
Reply
#7

I already see one mistake

tmp = strtok(cmdtext,idx);
DestroyVehicle(tmp);

and where is strval(tmp); ?

tmp is a string, not a decimal
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)