Undefined Simbol "SendCommand"
#7

It doesn't exist; It's not a native SA-MP function for Players, but that doesn't mean you can't make it yourself. I've renamed it to avoid collisions with the NPC function.

pawn Код:
#define SendPlayerCommand OnPlayerCommandText
Place the code above at (or near) the top of your script, and you'll be able to use it like so:

pawn Код:
public OnPlayerSpawn(playerid)
{
   SetPlayerPos(playerid,x,y,z); // I hope you've defined x, y and z as floats somewhere
   SendPlayerCommand(playerid, "/join");
   return 1;
}
Reply


Messages In This Thread
Undefined Simbol "SendCommand" - by Amel_PAtomAXx - 13.07.2011, 19:26
Re: Undefined Simbol "SendCommand" - by Calgon - 13.07.2011, 19:31
Re: Undefined Simbol "SendCommand" - by [MG]Dimi - 13.07.2011, 19:32
Re: Undefined Simbol "SendCommand" - by Amel_PAtomAXx - 13.07.2011, 19:35
Re: Undefined Simbol "SendCommand" - by jameskmonger - 13.07.2011, 19:37
Re: Undefined Simbol "SendCommand" - by [MG]Dimi - 13.07.2011, 19:38
Re: Undefined Simbol "SendCommand" - by Calgon - 13.07.2011, 19:38
Re: Undefined Simbol "SendCommand" - by Amel_PAtomAXx - 13.07.2011, 19:42

Forum Jump:


Users browsing this thread: 4 Guest(s)