Question +rep
#1

Hello, i have a question: how to make this:
Код:
stock GetPlayerRank(playerid)
{
	new rank[64];
	new tirist = APlayerData[playerid][StatsTruckerJobs];
	
	if(tirist >= 0 && tirist <= 50) rank = "Rookie Trucker";
	else if (tirist >= 51 && tirist <= 100) rank = "Good Trucker";
	else if (tirist >= 101 && tirist <= 150) rank = "Very Good Trucker";
	else if (tirist >= 151 && tirist <= 250) rank = "Expert Trucker";
	else if (tirist >= 251 && tirist <= 500) rank = "The Best Trucker";
	else if (tirist >= 501) rank = "King of the Road";
	
	return rank;
}
to do this:
Код:
GetPlayerRank(playerid, rank, sizeof(rank));
I mean to work is working, but give me warning:
Код:
warning 202: number of arguments does not match definition
I someone know please reply....
Reply


Messages In This Thread
Question +rep - by Banditul18 - 15.02.2016, 10:17
Re: Question +rep - by GhostHacker - 15.02.2016, 10:19
Re: Question +rep - by J0sh... - 15.02.2016, 10:27
Re: Question +rep - by valych - 15.02.2016, 10:30
Re: Question +rep - by MicroKyrr - 15.02.2016, 10:33

Forum Jump:


Users browsing this thread: 1 Guest(s)