25.03.2011, 02:55
it says UNKNOWN COMMAND everytime no matter what. please help. This is my code
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/police", cmdtext, true) == 0)
{
SetPlayerPos(playerid, -1573.2988,662.6685,7.1875);
SetPlayerFacingAngle(playerid, 180);
SendClientMessage(playerid, 0x00FFFFAA, "You have been teleported to Police Depo.");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/police", cmdtext, true) == 0)
{
SetPlayerPos(playerid, -1573.2988,662.6685,7.1875);
SetPlayerFacingAngle(playerid, 180);
SendClientMessage(playerid, 0x00FFFFAA, "You have been teleported to Police Depo.");
return 1;
}