eXP - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: eXP (
/showthread.php?tid=245175)
eXP -
Ћilvėnas - 30.03.2011
Hello fiend's
How to make the exp growth in 1 minutes!
Random setplayerxp..
HELP!
Re: eXP -
Raimis_R - 30.03.2011
First you need create timer
SetTimerEx( "RandomXP", 60000, 0, "d", playerid );
When create callback:
pawn Код:
forward RandomXP( playerid );
public RandomXP( playerid )
{
SetPlayerScore( playerid,GetPlayerScore( playerid ) +random( 40 ) +5 );
}
And you got Xp system.
Re: eXP -
Ћilvėnas - 30.03.2011
Mhm
Код:
D:\ZFR\gamemodes\ZFR.pwn(80) : error 017: undefined symbol "playerid"
SetTimerEx( "RandomXP", 60000, 0, "d", playerid );
Maybe try:
Код:
SetTimer("RandomXP",60000,1);
?
Re: eXP -
Raimis_R - 30.03.2011
Oh you need put timer in the OnPlayerSpawn Callback maybe
pawn Код:
public OnPlayerSpawn( playerid )
{
SetTimerEx( "RandomXP", 60000, true, "d", playerid );
return true;
}
Re: eXP -
Ћilvėnas - 30.03.2011
OMG FAIL: P
Thanks