21.12.2013, 03:03
Ok, So in my script I have a NG locker, I wanted to add more guns and I copied and pasted Mace but replaces the Gun IDS and the List item. I got 0 erros but when I went in game and went to get my new gun it didn't give it, Also there are weapons in between them and I know the List Item is correct 100%
Origional Code
Code after I edited it
Origional Code
Код:
if(listitem == 0) // Mace { if(PlayerInfo[playerid][pCash] < 0) { SendClientMessage(playerid, COLOR_GREY, " You cant afford that !"); TogglePlayerControllable(playerid,1); return 1; } else { GivePlayerWeapon(playerid, 41, 999999); PlayerInfo[playerid][pGun9] = 41; TogglePlayerControllable(playerid,1); } }
Код:
if(listitem == 12) //Spistol { if(PlayerInfo[playerid][pCash] < 800) { SendClientMessage(playerid, COLOR_GREY, " You cant afford that !"); TogglePlayerControllable(playerid,1); return 1; } else { GivePlayerWeapon(playerid, 23, 999999); PlayerInfo[playerid][pGun2] = 23; TogglePlayerControllable(playerid,1); } }