#1

Hello fiend's

How to make the exp growth in 1 minutes!

Random setplayerxp..

HELP!
Reply
#2

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.
Reply
#3

Mhm
Код:
D:\ZFR\gamemodes\ZFR.pwn(80) : error 017: undefined symbol "playerid"
SetTimerEx( "RandomXP", 60000, 0, "d", playerid );

Maybe try:
Код:
SetTimer("RandomXP",60000,1);
?
Reply
#4

Oh you need put timer in the OnPlayerSpawn Callback maybe
pawn Код:
public OnPlayerSpawn( playerid )
{
      SetTimerEx( "RandomXP", 60000, true, "d", playerid );
      return true;
}
Reply
#5

OMG FAIL: P

Thanks
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)