Simple commands
#1

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
Код:
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;
}
Reply


Messages In This Thread
Simple commands - by SonOussi - 21.01.2013, 17:31
Re: Simple commands - by Jeffry - 21.01.2013, 17:35
Re: Simple commands - by SonOussi - 21.01.2013, 17:36
Re: Simple commands - by azzerking - 21.01.2013, 17:37
Re: Simple commands - by Private200 - 21.01.2013, 20:05

Forum Jump:


Users browsing this thread: 3 Guest(s)