expression has no effect
#1

code:

(vallowed == 1 && IsPlayerInAnyVehicle(playerid)) ? (SetVehiclePos(vid, x, y, z)) : (SetPlayerPos(playerid, x, y, z));
Reply
#2

You can't use the ternary operator for this type of thing. You'll need to do it the normal way.
Reply
#3

pawn Код:
new _yay = (vallowed == 1 && IsPlayerInAnyVehicle(playerid)) ? SetVehiclePos(vid, x, y, z) : SetPlayerPos(playerid, x, y, z);
#pragma unused _yay
Doesn't make sense, better write normal if/else statement
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)