Give Weapon 2 errors and 1 warmning
#4

Line 816/818: Check the amount of brackets that you open against the amount you close.

Line 836:
pawn Код:
else return SendClientMessage(playerid, 0xFF00CC, "USAGE: /giveweapon[PlayerId/PartOfName] [WeaponId] [Ammo]");
            SendClientMessage(playerid, 0xFF00CC, "1(Brass) 2(Nite) 3(Club) 4(knife) 5(bat) 6(Shovel) 7(Cue) 8(Katana) 9(Chainsaw) 10-13(Dildo)");
            SendClientMessage(playerid, 0xFF00CC, "14(Flowers) 15(Cane) 16(Grenades) 17(Teargas) 18(Molotovs) 22(Pistol) 23(SPistol) 24(Eagle)");
            SendClientMessage(playerid, 0xFF00CC, "25(Shotgun) 26(sawn-off) 27(Combat) 28(TEC9) 29(MP5) 30(AK47) 31(M4) 32(MAC10) 33(Country)");
            SendClientMessage(playerid, 0xFF00CC, "34(Sniper) 35(RPG) 37(Flamethrower) 38(Minigun) 41(spray) 42(exting) 43(Camera) 46(Parachute)");
You already return after the first sendclientmessage, so there is no chance for the other lines to get called. Move the return and add bglock brackets to assign all lines to the else.
pawn Код:
else { //changed this line
            SendClientMessage(playerid, 0xFF00CC, "USAGE: /giveweapon[PlayerId/PartOfName] [WeaponId] [Ammo]");
            SendClientMessage(playerid, 0xFF00CC, "1(Brass) 2(Nite) 3(Club) 4(knife) 5(bat) 6(Shovel) 7(Cue) 8(Katana) 9(Chainsaw) 10-13(Dildo)");
            SendClientMessage(playerid, 0xFF00CC, "14(Flowers) 15(Cane) 16(Grenades) 17(Teargas) 18(Molotovs) 22(Pistol) 23(SPistol) 24(Eagle)");
            SendClientMessage(playerid, 0xFF00CC, "25(Shotgun) 26(sawn-off) 27(Combat) 28(TEC9) 29(MP5) 30(AK47) 31(M4) 32(MAC10) 33(Country)");
            return SendClientMessage(playerid, 0xFF00CC, "34(Sniper) 35(RPG) 37(Flamethrower) 38(Minigun) 41(spray) 42(exting) 43(Camera) 46(Parachute)"); // changed this line
} //And added this
Reply


Messages In This Thread
Give Weapon 2 errors and 1 warmning - by ricardo178 - 20.03.2011, 13:52
Re: Give Weapon 2 errors and 1 warmning - by Zh3r0 - 20.03.2011, 13:55
Re: Give Weapon 2 errors and 1 warmning - by Mean - 20.03.2011, 13:57
Re: Give Weapon 2 errors and 1 warmning - by Mauzen - 20.03.2011, 13:58
Re: Give Weapon 2 errors and 1 warmning - by ricardo178 - 20.03.2011, 14:00

Forum Jump:


Users browsing this thread: 1 Guest(s)