29.12.2007, 14:13
My commands in the server is'nt working i do them and it says SERVER:Unknown command
but it compiles fine with no errors,but only 4 warnings which dont mean anything
heres the code
but it compiles fine with no errors,but only 4 warnings which dont mean anything
heres the code
Код:
public OnPlayerCommandText (playerid,cmdtext[])
{
if strcmp(cmdtext,"/smbase",true, 0) *then
{
SetPlayerPos(playerid,-2157.7058,-197.5349,35.3203);
SendClientMessage(playerid,TEXT_COLOR, "Welcome to the SM Base");
return 1;
}
if strcmp(cmdtext,"/kill",true, 1) *then
{
SetPlayerHealth(playerid, 0);
return 1;
}
return 0;
}

