01.10.2014, 16:37
Hey, I'm trying to create a PlayerLevel system but I'm having a little problem. If someone could teach me the difference between these 3 lines, that would be great! I just don't understand what the differences are between <=, >==. I also don't get the difference between one equals sign and two ( =, == ). Please help me out a little
I just want to know how I would make it so if the player is level 0 an they type /upgradelevel, it gives them level 2. If they type /upgradelevel when they're level 1, it makes them level 2 etc.
Also, what else would I have to add to make a level system? I've already added PlayerLevel under enums.
Thanks!!!!
pawn Код:
CMD:upgradelevel(playerid, params[])
{
new string[128];
GetPlayerScore(playerid);
if(GetPlayerScore(playerid <= 0) //this <=
if(GetPlayerScore(playerid == 0) //this ==
if(GetPlayerScore(playerid = 0) //this =
if(GetPlayerScore(playerid >= 0) //this >=
etc etc
Also, what else would I have to add to make a level system? I've already added PlayerLevel under enums.
Thanks!!!!