Giveall Command
#1

pawn Код:
new weapon,ammo,string[128];
        if(sscanf(params,"ui",weapon,ammo)) return SendClientMessage(playerid,COLOR_RED,"USAGE: /giveallweapon [weaponid] [ammo]");
        foreach(Player,i) GivePlayerWeapon(i,weapon,ammo);
This code looks okay, but when using it, Everyone gets a weapon called "65535" or something like that.
Reply
#2

pawn Код:
if(sscanf(params,"ii",weapon,ammo))
'u' is for playerids, not for weapon ids
Reply
#3

Thanks!!! I never knew one letter could affect the whole thing.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)