Again me
#7

Probably you have something like this:
pawn Код:
if(!strcmp("/kill", cmdtext, true, 5))
{
    SetPlayerHealth(playerid, 0.0);
}
Notice the '5' in the if-statement. This will only compare the first 5 characters, hence /killfoobar is the same as /kill. Remove that 5 and the preceding comma and it should be fixed.
Reply


Messages In This Thread
Again me - by sleepysnowflake - 12.11.2010, 16:54
Re: Again me - by Calgon - 12.11.2010, 17:00
Re: Again me - by [MWR]Blood - 12.11.2010, 17:01
Re: Again me - by sleepysnowflake - 12.11.2010, 17:09
Re: Again me - by sleepysnowflake - 12.11.2010, 17:48
Re: Again me - by Jacob_Venturas - 12.11.2010, 17:50
Re: Again me - by Vince - 12.11.2010, 17:54
Re: Again me - by sleepysnowflake - 13.11.2010, 15:43
Re: Again me - by sleepysnowflake - 13.11.2010, 16:00
Re: Again me - by Bessensap - 13.11.2010, 16:37

Forum Jump:


Users browsing this thread: 2 Guest(s)