21.01.2013, 17:31
Hey evrybody ,
I have a problem with scripting .
I want to create simple commands like /kill and /help but i get this error 035: argument type mismatch (argument 2)
this is my code
I have a problem with scripting .
I want to create simple commands like /kill and /help but i get this error 035: argument type mismatch (argument 2)
this is my code
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/kill", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid, 0) ;
return 1;
}
if (strcmp("/help", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, "Welcome To Draguto Server ") ;
return 1;
}
return 0;
}

