Exp on payday
#1

Guys can someone tell me how can I make a function that checks if player is Level 1 VIP and if the player VIP level is 1 he'll receive +1 extra Exp on PayDay.
I have this funciton:
Код:
			if(PlayerInfo[i][ExpS] == 0)
			{
			    PlayerInfo[i][Exp]++;
			}
			else
			{
			    PlayerInfo[i][Exp] += PlayerInfo[i][ExpS];
			}
The function that i'm showin give +1 Exp on every member wich vip level is 0.
Reply
#2

Just above the code you gave us, try and use this:

pawn Код:
if(PlayerInfo[i][VIP] >= 1) // or whatever your variable is
{
    PlayerInfo[i][Exp]++;
}
Reply
#3

Thank you, but can you tell me how can I make this function give +3 Exp?
Reply
#4

Here

pawn Код:
PlayerInfo[i][Exp] +=3;
Reply
#5

Thank you. +rep for both of you guys.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)