what what does it means,, im still learning my pawn skill
#6

(( != i )) it means that it NOT equal for the integar
Example;
pawn Код:
if(GetPlayerMoney(playerid) != 100) return SendClientMessage(playerid, White, "you dont have Exactly 100$ right now!");
/* Explain: GetPlayerMOney(playerid) mean that we want to find how much money the player have?
    but before that we wrote "if" that making the line to a question. and we wrote != that making the question to
    question and then we added the int 100 whice means the integar that we want to check! so our question is:
    if the player doesn't have 100% it will send him a message that warn him that he dont have exactly 100$
    and if we will change the line to: */

if(GetPlayerMoney(playerid) == 100) return SendClientMessage(playerid, White, "you have Exactly 100$ right now!");
/* It will be a positive question: if the player has 100$it will send him a message to warn him that he dont have exactly
    100$
    But there is another "question" that you can ask. and this question will check if the player has more or less then a
    int: */

if(GetPlayerMoney(playerid) > 100) return SendClientMessage(playerid, White, "you have more then 100$ right now!");
    /* This is question: if player have more then 100$ it will send him a message about it... */
Understood?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)