11.03.2016, 12:38
Hello, I have a little problem on /skill command.
I think you all know how it should look like.
This is how it looks at me http://imgur.com/2LwFhNi .
I think you all know how it should look like.
This is how it looks at me http://imgur.com/2LwFhNi .
Quote:
CMDkill(playerid,params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi mai intai."); if(IsPlayerConnected(playerid)) { new string[MAX_STRING]; SendClientMessage(playerid, COLOR_WHITE, "---- Skills: ----"); if(PlayerInfo[playerid][pRobSkill] < 6) { format(string,sizeof(string),"Rob skill: %d/6 (%d robs) | Needed for next skill level: %d",PlayerInfo[playerid][pRobSkill], PlayerInfo[playerid][pRobTimes], PlayerInfo[playerid][pRobRem]); } else if(PlayerInfo[playerid][pRobSkill] >= 6) { format(string,sizeof(string),"Rob skill: %d/6 (%d robs)",PlayerInfo[playerid][pRobSkill], PlayerInfo[playerid][pRobTimes]); } SendClientMessage(playerid, COLOR_WHITE, string); if(PlayerInfo[playerid][pTruckSkill] < 6) { format(string,sizeof(string),"Trucker skill: %d/6 (%d trailers delivered) | Needed for next skill level: %d",PlayerInfo[playerid][pTruckSkill], PlayerInfo[playerid][pTruckTimes], PlayerInfo[playerid][pTruckRem]); } else if(PlayerInfo[playerid][pTruckSkill] >= 6) { format(string,sizeof(string),"Trucker skill: %d/6 (%d trailers delivered)",PlayerInfo[playerid][pTruckSkill], PlayerInfo[playerid][pTruckTimes]); } SendClientMessage(playerid, COLOR_WHITE, string); if(PlayerInfo[playerid][pFarmSkill] < 6) { format(string,sizeof(string),"Farmer skill: %d/6 (%d bags of flour sold) | Needed for next skill level: %d",PlayerInfo[playerid][pFarmSkill], PlayerInfo[playerid][pFarmTimes], PlayerInfo[playerid][pFarmRem]); } else if(PlayerInfo[playerid][pFarmSkill] >= 6) { format(string,sizeof(string),"Farmer skill: %d/6 (%d bags of flour sold)",PlayerInfo[playerid][pFarmSkill], PlayerInfo[playerid][pFarmTimes]); } SendClientMessage(playerid, COLOR_WHITE, string); if(PlayerInfo[playerid][pFishSkill] < 6) { format(string,sizeof(string),"Fisherman skill: %d/6 (%d fish caught) | Needed for next skill level: %d",PlayerInfo[playerid][pFishSkill], PlayerInfo[playerid][pFishTimes], PlayerInfo[playerid][pFishRem]); } else if(PlayerInfo[playerid][pFishSkill] >= 6) { format(string,sizeof(string),"Fisherman skill: %d/6 (%d fish caught)",PlayerInfo[playerid][pFishSkill], PlayerInfo[playerid][pFishTimes]); } SendClientMessage(playerid, COLOR_WHITE, string); } return 1; } |