12.04.2015, 08:41
Hello!
I need a function like SendRCONCommands but for normal commands.
I've tried to do this:
but i have this error:
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;
}
Код:
C:\ParadiseCityServer\likers.pwn(1039) : error 036: empty statement Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.




