18.11.2013, 13:33
Hello,
i was wondering if it would be possible to do something like this:
but how do i do this properly?
or must it be:
The reason i am asking is because if the first way can be done it will be shorter code.
i was wondering if it would be possible to do something like this:
pawn Код:
if(User[playerid][USER_EXP] == 0) return User[playerid][USER_RANK] = 0 (PlayerTextDrawTextSize(playerid, expb[playerid], 222.761901, 0.000000)(UpdateTextDraw(playerid));
or must it be:
pawn Код:
if(User[playerid][USER_EXP] == 0)
{
User[playerid][USER_RANK] = 0;
PlayerTextDrawTextSize(playerid, expb[playerid], 222.761901, 0.000000);
UpdateTextDraw(playerid); //i have this forwarded (it hides and shows the exp bar to update it)
return 1;
}