Help whats wrong
#1

When i do this ingame it dosent give anything not a message or health nothing i guess it got something to do with
pawn Код:
else if(!strcmp(params, "choosehp", true))
right?

pawn Код:
CMD:heal(playerid, params[])
{
    if(sscanf(params, "us[128]", victim, params))
    {
        SendClientMessage(playerid, COLOR_WHITE, "USAGE: /heal [playerid/PartOfName] [choosehp]");
        return 1;
    }
    if(!IsPlayerConnected(victim)) return SendClientMessage(playerid, -1, "643384 does not exist.");
    else if(!strcmp(params, "choosehp", true))
    {
        if(sscanf(params, "us[128]i", victim, params, amount)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /heal [playerid/PartOfName] [choosehp] [amount]");
        SetPlayerHealth(victim, amount);
        format(string, sizeof(string), "%s has refilled your health to %d.", NameL(playerid), amount);
        SendClientMessage(victim, COLOR_BB, string);
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)