No Eerror Just BUG [+REP]
#4

Hello buddy, i made an example for you to understand;


pawn Код:
CMD:showplayerguns(playerid,params[])
{
    new id,string[128],ammo[2],name[24];
    if(sscanf(params, "u", id)) return SendClientMessage(playerid, -1, "USAGE: /showplayerguns [Player Name/Player ID]");
    for(new w = 0; w < 13; w++)
    {
    GetPlayerWeaponData(id, w, ammo[0], ammo[1]);
    if(ammo[0] == 0) continue;
    GetWeaponName(ammo[0], name, sizeof(name));
    format(string, sizeof(string), "Player's Weapons: %s %s(%d),", string, name, ammo[1]);
    }
    string[strlen(string)-1] = 0;
    SendClientMessage(playerid, -1, string);
    return 1;
}
Reply


Messages In This Thread
No Eerror Just BUG [+REP] - by arlindi - 30.04.2015, 20:09
Re : No Eerror Just BUG [+REP] - by StreetRP - 30.04.2015, 20:27
Re: No Eerror Just BUG [+REP] - by arlindi - 30.04.2015, 20:53
Re: No Eerror Just BUG [+REP] - by trablon - 30.04.2015, 21:19
Re: No Eerror Just BUG [+REP] - by arlindi - 30.04.2015, 21:52
Re: No Eerror Just BUG [+REP] - by icra - 30.04.2015, 22:26
Re: No Eerror Just BUG [+REP] - by arlindi - 30.04.2015, 22:29
Re: No Eerror Just BUG [+REP] - by icra - 30.04.2015, 22:58
Re: No Eerror Just BUG [+REP] - by arlindi - 01.05.2015, 15:32
Re: No Eerror Just BUG [+REP] - by Mencent - 01.05.2015, 15:35

Forum Jump:


Users browsing this thread: 1 Guest(s)