Quote:
Originally Posted by tsonn1
Try this:
pawn Код:
switch(listitem) { case 0: { if(playerVariables[playerid][pMaterials] >= 30) { if(playerVariables[playerid][pVehicleParts] == 1) { givePlayerValidWeapon(playerid, 8); playerVariables[playerid][pMaterials] -= 30; SendClientMessage(playerid, COLOR_WHITE, "You have created a katana. Type /giveweapon [playerid] to pass the weapon on."); format(szMessage, sizeof(szMessage), "* %s has created a katana from their materials.", szPlayerName); nearByMessage(playerid, COLOR_PURPLE, szMessage); playerVariables[playerid][pJobDelay] = 30; playerVariables[playerid][pJobSkill][0]++; switch(playerVariables[playerid][pJobSkill][0]) { case 50, 100, 150, 200, 250, 300, 350, 400, 450, 500: { format(szMessage,sizeof(szMessage),"Congratulations! Your weapon creation skill level is now %d. You can now create more powerful weapons.",playerVariables[playerid][pJobSkill][0]/50); SendClientMessage(playerid,COLOR_WHITE,szMessage); } } } } } } } } }
|
Thanks what did you do to make it work?