Help with this code please.
#1

ok so im trying to get this to Work but ive been unsuccessful T_T

pawn Код:
if(PlayerInfo[playerid][pPSaude] == 1);
    {
    GivePlayerMoney(playerid, -100);
    }
Someone help me please?
Reply
#2

pawn Код:
if(PlayerInfo[playerid][pPSaude] == 1)
{
    GivePlayerMoney(playerid, -100);
}
You don't have semi-colon's on the end of If statements if you are using brackets.
Reply
#3

Quote:
Originally Posted by [HiC]TheKiller
Посмотреть сообщение
if you are using brackets.
Since when does a if statement ever have a semi-colon?

Please explain how, and why it is used on a if statement?
Reply
#4

An if statement never has a semi-colon, try compiling on your if statements with a semi-colon and see what happens.
Reply
#5

Quote:
Originally Posted by Godhimself
Посмотреть сообщение
Since when does a if statement ever have a semi-colon?

Please explain how, and why it is used on a if statement?
I meant like this for a example
pawn Код:
if(something == something) print("something"); // Semi colon at the end of the line.
Maybe I didn't actually word it right for some people .
Reply
#6

Oh lol, okay sorry for misunderstanding.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)