Quote:
Originally Posted by [uL]Pottus
This made me laugh....
switch(PlayerInfo[playerid][pMale])
Why would you need a switch for a true/false?
|
Maybe he have another sex (Gay
) ?
I just typed it as his script..he wasn't using a bool, thats a tip for him.
Quote:
Originally Posted by Scrillex
pawn Код:
if(PlayerInfo[playerid][pArrived] == 0) { SetPlayerPos(playerid, 1773.8523, -1905.5093, 13.5501); } if(PlayerInfo[playerid][pArrived] == 1) { SetPlayerPos(playerid, 1772.1746, -1962.3596, 14.1172); } if(PlayerInfo[playerid][pArrived] == 2) { SetPlayerPos(playerid, 1685.6259, -2238.5376, 13.5469); } if(PlayerInfo[playerid][pMale] == 1) { femaleskins = random(sizeof(FEMALESKIN)); SetPlayerSkin(playerid, femaleskins); PlayerInfo[playerid][pChar] = femaleskins; } if(PlayerInfo[playerid][pMale] == 0) { maleskins = random(sizeof(MALESKIN)); SetPlayerSkin(playerid, maleskins); PlayerInfo[playerid][pChar] = maleskins; }
|
Also a little question please.. What's different about bools/variable except "true/false"/"Whatever value", It saves Memory ? Didn't find a clear explanation..