Using (playerid == )
#1

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

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
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!!!!
Reply


Messages In This Thread
Using (playerid == ) - by Josh_Main - 01.10.2014, 16:37
Re: Using (playerid == ) - by Sawalha - 01.10.2014, 16:43
Re: Using (playerid == ) - by Rudy_ - 01.10.2014, 16:46
Re: Using (playerid == ) - by Josh_Main - 01.10.2014, 16:56
Re: Using (playerid == ) - by Dignity - 01.10.2014, 17:03
Re: Using (playerid == ) - by Rudy_ - 01.10.2014, 17:06
Re: Using (playerid == ) - by Rudy_ - 01.10.2014, 17:09
Re: Using (playerid == ) - by Josh_Main - 01.10.2014, 17:13
Re: Using (playerid == ) - by Dignity - 01.10.2014, 17:16
Re: Using (playerid == ) - by Rudy_ - 01.10.2014, 17:17

Forum Jump:


Users browsing this thread: 1 Guest(s)