SA-MP Forums Archive
Command typed and nothing is happening and no message error. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Command typed and nothing is happening and no message error. (/showthread.php?tid=611012)



Command typed and nothing is happening and no message error. - HashiramaDenzy - 01.07.2016

When i typed a command nothing is happening, even showing a mesage. what is the reason of that and how to fix this? thanks

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/kill", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid, 0.0);
SendClientMessage(playerid, 0x00FF00FF, "You respawned!");
return 1;
}
return 0;
}


Re: Command typed and nothing is happening and no message error. - fuckingcruse - 01.07.2016

Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/kill", cmdtext, true, 5) == 0)
{
SetPlayerHealth(playerid, 0.0);
SendClientMessage(playerid, 0x00FF00FF, "You respawned!");
return 1;
}
return 0;
}



Re: Command typed and nothing is happening and no message error. - HashiramaDenzy - 01.07.2016

still the same, nothing happened..


Re: Command typed and nothing is happening and no message error. - oktokt1 - 01.07.2016

This problem happening to me too.
Try to chabge he cmd from /kill to /death or any thing else and tell me what happend.


Re: Command typed and nothing is happening and no message error. - HashiramaDenzy - 01.07.2016

Quote:
Originally Posted by oktokt1
View Post
This problem happening to me too.
Try to chabge he cmd from /kill to /death or any thing else and tell me what happend.
i tried what you said but still the same


Re: Command typed and nothing is happening and no message error. - fuckingcruse - 01.07.2016

want a best idea?
Use the ZCMD include, it will be easy and good.


Re: Command typed and nothing is happening and no message error. - HashiramaDenzy - 01.07.2016

Still the same i did what you said