SA-MP Forums Archive
Problem to /skill - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem to /skill (/showthread.php?tid=602683)



Problem to /skill - RiHn0 - 11.03.2016

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




Re: Problem to /skill - saffierr - 11.03.2016

Elaborate more, what is the problem ?


Re: Problem to /skill - SsHady - 11.03.2016

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


Re: Problem to /skill - RiHn0 - 11.03.2016

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