30.08.2011, 18:44
couldn't be bothered adding brackets for you..
pawn Код:
stock UpdateRank(playerid)
{
new string[40];
if(PInfo[playerid][Missionspassed] >= 0 && PInfo[playerid][Missionspassed] < 10) format(pRank[playerid], 15, "New Trucker");
else if(PInfo[playerid][Missionspassed] >= 10 && PInfo[playerid][Missionspassed] < 25) format(pRank[playerid],10,"Trucker");
else if(PInfo[playerid][Missionspassed] >= 25 && PInfo[playerid][Missionspassed] < 45) format(pRank[playerid],20,"Advancing Trucker");
else if(PInfo[playerid][Missionspassed] >= 45 && PInfo[playerid][Missionspassed] < 65) format(pRank[playerid],20,"Advanced Trucker");
else if(PInfo[playerid][Missionspassed] >= 65 && PInfo[playerid][Missionspassed] < 90) format(pRank[playerid],20, "Respected Trucker");
else if(PInfo[playerid][Missionspassed] >= 90 && PInfo[playerid][Missionspassed] < 115) format(pRank[playerid],20,"Trucking Maniac");
else if(PInfo[playerid][Missionspassed] >= 115 && PInfo[playerid][Missionspassed] < 145) format(pRank[playerid],21,"Trucking is my life!");
else if(PInfo[playerid][Missionspassed] >= 145 && PInfo[playerid][Missionspassed] < 170) format(pRank[playerid],20,"Trucking Addicted");
else if(PInfo[playerid][Missionspassed] >= 170) pRank[playerid] = "Trucking God";
else format(string, sizeof(string), "%s", pRank[playerid]);
if(PInfo[playerid][Owner] == 1) strcat(pRank[playerid], "- Server Owner", 40);
if(PInfo[playerid][Level] < 500) strcat(pRank[playerid], "- Administrator", 40);
Update3DTextLabelText(Ranklbl[playerid], green2, string);
return 1;
}