Problem to /skill
#1

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 .



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;
}

Reply
#2

Elaborate more, what is the problem ?
Reply
#3

I can't seem to understand what the problem is by looking at that screenshot? Can you please tell us what the problem is when you type that cmd!
P.S Use tags for sharing code
Reply
#4

(0 robs) | Needed for next skill: 0
..........................................
That's the problem.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)