Command typed and nothing is happening and no message error.
#1

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;
}
Reply
#2

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;
}
Reply
#3

still the same, nothing happened..
Reply
#4

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

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
Reply
#6

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

Still the same i did what you said
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)