Need two solutions with two problems
#3

pawn Код:
CMD:heal(playerid, params[]) {
    new id;
    if (sscanf(params, "u", id)) return SendClientMessage(playerid, 0xFF0000AA, "Usage : /heal <ID>");
    if(!IsPlayerConnected(id)) return SendClientMessage(playerid, 0xFF0000AA, "Player not found");

    SetPlayerHealth(id, 100.0);
    SendClientMessage(id, 0x00FF00AA, "You have been healed");
    SendClientMessage(playerid, 0x00FF00AA, "Player healed");
    return 1;
}
strtok and strcmp commands = no. Once you get zcmd and sscanf, just copy and paste that code and the first should be fine.
Reply


Messages In This Thread
Need two solutions for two problems - by Edward2013 - 11.08.2013, 15:01
Re: Need two solutions with two problems - by Misiur - 11.08.2013, 15:54
Re: Need two solutions with two problems - by Alternative112 - 11.08.2013, 17:15

Forum Jump:


Users browsing this thread: 1 Guest(s)