Need help
#1

Hello can someone show me the code how to fix the stock [maxexplvl]

Код:
public OnPlayerUpdate(playerid)
{
	new string[256];
	SetPlayerScore(playerid, GetPlayerLevel(playerid));

	if(GetPlayerExp(playerid) >= maxexplvl)
	{
		GivePlayerLevel(playerid, 1);
	   	format(string, sizeof(string), "*  Congratulations! Your char id had ben increased level to {FFFFFF}-> %d", GetPlayerLevel(playerid));
	   	SendClientMessage(playerid, 0xCCFF00BB, string);
     	GivePlayerExp(playerid, - 1000);
	}
	return 1;
}
maxexplvl function is when it (getplayerlevel, 1) the value of maxexplvl is 1000 then if (getplayerlevel, 2) the value of maxexplvl is 2000 can you guys help me to create the callback code?

i don't know how.. are it look like this?
Код:
stock maxexplvl(playerid)
{
	if(GetPlayerLevel(playerid, 1) return maxexplvl(1000)
}
Reply


Messages In This Thread
Need help - by leingod - 01.09.2011, 07:15
Re: Need help - by =WoR=Varth - 01.09.2011, 07:20
Re: Need help - by FireCat - 01.09.2011, 07:23
Re: Need help - by leingod - 01.09.2011, 07:28
Re: Need help - by =WoR=Varth - 01.09.2011, 07:28
Re: Need help - by FireCat - 01.09.2011, 07:29
Re: Need help - by leingod - 01.09.2011, 07:30
Re: Need help - by =WoR=Varth - 01.09.2011, 07:33
Re: Need help - by leingod - 01.09.2011, 07:35
Re: Need help - by =WoR=Varth - 01.09.2011, 07:39

Forum Jump:


Users browsing this thread: 5 Guest(s)