kobra123 Posted July 10, 2015 Report Share Posted July 10, 2015 Nu raman salvate skiilurile la joburi.CMD:skills(playerid, params[]) { SendClientMessage(playerid, -1, "-------------Skills-------------"); if(playerVariables[playerid][pRobSkill] < 4) { format(szMessage, sizeof(szMessage), "Rob skill: %d/6 (%d robs) - robs needed for next skill: %d", playerVariables[playerid][pRobSkill], playerVariables[playerid][pRobRem], playerVariables[playerid][pRobTimes]); SendClientMessage(playerid, -1, szMessage); } else { format(szMessage, sizeof(szMessage), "Rob skill: %d/4 (%d robs)", playerVariables[playerid][pRobSkill], playerVariables[playerid][pRobRem]); SendClientMessage(playerid, -1, szMessage); } if(playerVariables[playerid][pFishSkill] < 4) { format(szMessage, sizeof(szMessage), "Fishing skill: %d/4 (fished %d times) - fishes needed for next skill: %d", playerVariables[playerid][pFishSkill], playerVariables[playerid][pFishTimes], playerVariables[playerid][pFishingRem]); SendClientMessage(playerid, -1, szMessage); } else { format(szMessage, sizeof(szMessage), "Fishing skill: %d/4 (fished %d times)", playerVariables[playerid][pFishSkill], playerVariables[playerid][pFishTimes]); SendClientMessage(playerid, -1, szMessage); } if(playerVariables[playerid][pTowSkill] < 4) { format(szMessage, sizeof(szMessage), "Towing skill: %d/4 (towed %d cars) - cars needed for next skill: %d", playerVariables[playerid][pTowSkill], playerVariables[playerid][pTowTimes], playerVariables[playerid][pTowRem]); SendClientMessage(playerid, -1, szMessage); } else { format(szMessage, sizeof(szMessage), "Towing skill: %d/4 (towed %d cars)", playerVariables[playerid][pTowSkill], playerVariables[playerid][pTowTimes]); SendClientMessage(playerid, -1, szMessage); } if(playerVariables[playerid][pCJSkill] < 4) { format(szMessage, sizeof(szMessage), "Car Jacker skill: %d/4 (%d cars jacked) - cars needed for next skill: %d", playerVariables[playerid][pCJSkill], playerVariables[playerid][pCJTimes], playerVariables[playerid][pCJTimesRem]); SendClientMessage(playerid, -1, szMessage); } else { format(szMessage, sizeof(szMessage), "Car Jacker skill: %d/4 (%d cars jacked", playerVariables[playerid][pCJSkill], playerVariables[playerid][pCJTimes]); SendClientMessage(playerid, -1, szMessage); } if(playerVariables[playerid][pTruckSkill] < 4) { format(szMessage, sizeof(szMessage), "Trucker skill: %d/4 (%d trailers delivered) - cars needed for next skill: %d", playerVariables[playerid][pTruckSkill], playerVariables[playerid][pTruckTimes], playerVariables[playerid][pTruckRem]); SendClientMessage(playerid, -1, szMessage); } else { format(szMessage, sizeof(szMessage), "Trucker skill: %d/4 (%d trailers delivered)", playerVariables[playerid][pTruckSkill], playerVariables[playerid][pTruckTimes]); SendClientMessage(playerid, -1, szMessage); } return 1; } CMD:skill(playerid, params[]) { return cmd_skills(playerid, params); }am incercat sa modific sa se salveze dar fara succes. Quote Link to comment Share on other sites More sharing options...
Sharp.mdFk Posted July 10, 2015 Report Share Posted July 10, 2015 Cu ce le salvezi? MySQL / Dini / SQLite? Quote Link to comment Share on other sites More sharing options...
kobra123 Posted July 10, 2015 Author Report Share Posted July 10, 2015 Mysql Quote Link to comment Share on other sites More sharing options...
Gireada Posted July 10, 2015 Report Share Posted July 10, 2015 Vezi atunci cand face update la baza de date, e posibil sa nu fie scris cum trebuie comanda. Quote Link to comment Share on other sites More sharing options...
kobra123 Posted July 10, 2015 Author Report Share Posted July 10, 2015 comanda este scrisa bn nu inteleg de la ce ar putea fi... Quote Link to comment Share on other sites More sharing options...
Sharp.mdFk Posted July 10, 2015 Report Share Posted July 10, 2015 Ne postezi si noua comanda? Quote Link to comment Share on other sites More sharing options...
kobra123 Posted July 10, 2015 Author Report Share Posted July 10, 2015 { SendClientMessage(playerid, -1, "-------------Skills-------------"); if(playerVariables[playerid][pRobSkill] < 4) { format(szMessage, sizeof(szMessage), "Rob skill: %d/6 (%d robs) - robs needed for next skill: %d", playerVariables[playerid][pRobSkill], playerVariables[playerid][pRobRem], playerVariables[playerid][pRobTimes]); SendClientMessage(playerid, -1, szMessage); } else { format(szMessage, sizeof(szMessage), "Rob skill: %d/4 (%d robs)", playerVariables[playerid][pRobSkill], playerVariables[playerid][pRobRem]); SendClientMessage(playerid, -1, szMessage); } if(playerVariables[playerid][pFishSkill] < 4) { format(szMessage, sizeof(szMessage), "Fishing skill: %d/4 (fished %d times) - fishes needed for next skill: %d", playerVariables[playerid][pFishSkill], playerVariables[playerid][pFishTimes], playerVariables[playerid][pFishingRem]); SendClientMessage(playerid, -1, szMessage); } else { format(szMessage, sizeof(szMessage), "Fishing skill: %d/4 (fished %d times)", playerVariables[playerid][pFishSkill], playerVariables[playerid][pFishTimes]); SendClientMessage(playerid, -1, szMessage); } if(playerVariables[playerid][pTowSkill] < 4) { format(szMessage, sizeof(szMessage), "Towing skill: %d/4 (towed %d cars) - cars needed for next skill: %d", playerVariables[playerid][pTowSkill], playerVariables[playerid][pTowTimes], playerVariables[playerid][pTowRem]); SendClientMessage(playerid, -1, szMessage); } else { format(szMessage, sizeof(szMessage), "Towing skill: %d/4 (towed %d cars)", playerVariables[playerid][pTowSkill], playerVariables[playerid][pTowTimes]); SendClientMessage(playerid, -1, szMessage); } if(playerVariables[playerid][pCJSkill] < 4) { format(szMessage, sizeof(szMessage), "Car Jacker skill: %d/4 (%d cars jacked) - cars needed for next skill: %d", playerVariables[playerid][pCJSkill], playerVariables[playerid][pCJTimes], playerVariables[playerid][pCJTimesRem]); SendClientMessage(playerid, -1, szMessage); } else { format(szMessage, sizeof(szMessage), "Car Jacker skill: %d/4 (%d cars jacked", playerVariables[playerid][pCJSkill], playerVariables[playerid][pCJTimes]); SendClientMessage(playerid, -1, szMessage); } if(playerVariables[playerid][pTruckSkill] < 4) { format(szMessage, sizeof(szMessage), "Trucker skill: %d/4 (%d trailers delivered) - cars needed for next skill: %d", playerVariables[playerid][pTruckSkill], playerVariables[playerid][pTruckTimes], playerVariables[playerid][pTruckRem]); SendClientMessage(playerid, -1, szMessage); } else { format(szMessage, sizeof(szMessage), "Trucker skill: %d/4 (%d trailers delivered)", playerVariables[playerid][pTruckSkill], playerVariables[playerid][pTruckTimes]); SendClientMessage(playerid, -1, szMessage); } return 1; } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.