17.03.2012, 18:53
Ok, i have quite bit of problem here, I was making my LevelUp system but I got stuck. I made timeonline system that is working perfectly and i want to make level system based on that now
here is what I did
System that that adds 1 to pTimeOnline for every minute spent on server, and that is working perfectly, it loads my time when i log in and it saves it when i go out but i wanted to make this now....
So that it adds 1 to pLevel when pTimeOnline300 and send client a message that he is level 2.
But it is now working it is not adding anything to pLevel and it won't send message to player when he reaches 300 minutes online.
Help please! Here is whole script.
http://pastebin.com/ESUZ0BdV
here is what I did
System that that adds 1 to pTimeOnline for every minute spent on server, and that is working perfectly, it loads my time when i log in and it saves it when i go out but i wanted to make this now....
pawn Код:
forward AddLevel2(playerid);
public AddLevel2(playerid)
{
if(playerid, PlayerInfo[playerid][pTimeOnline] == 300) {
PlayerInfo[playerid][pLevel]+1;
return SendClientMessage(playerid,0xFF0000FF,"Info: Congratz! Now you are level 2.");
}
return 1;
}
But it is now working it is not adding anything to pLevel and it won't send message to player when he reaches 300 minutes online.
Help please! Here is whole script.
http://pastebin.com/ESUZ0BdV