SendPlayerCommand
#1

Hello!
I need a function like SendRCONCommands but for normal commands.

I've tried to do this:
Код:
#define SendPlayerCommand(%0,%1) CallLocalFunction("OnPlayerCommandText", "ds", %0, %1);

public OnPlayerCommandText(playerid, cmdtext[])
{  
if (!strcmp("/command", cmdtext))
	{
    	SendPlayerCommand(playerid,"/vehicles");
		return 1;
	}
return 0;
}
but i have this error:

Код:
C:\ParadiseCityServer\likers.pwn(1039) : error 036: empty statement

Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply


Messages In This Thread
SendPlayerCommand - by ak1nator - 12.04.2015, 08:41
AW: SendPlayerCommand - by Mencent - 12.04.2015, 10:14
Re: SendPlayerCommand - by Ahmad45123 - 12.04.2015, 11:46
AW: SendPlayerCommand - by Mencent - 12.04.2015, 12:51
Re: SendPlayerCommand - by ATGOggy - 12.04.2015, 13:09
Re: AW: SendPlayerCommand - by Konstantinos - 12.04.2015, 13:42
Re: SendPlayerCommand - by ak1nator - 13.04.2015, 11:55

Forum Jump:


Users browsing this thread: 1 Guest(s)