bool in format.
#1

Hello, I was wondering if anyone knows how I do it to the format used function "If a player is in a vehicle," and in the format "string" would be announced "False" no car "True" in the vehicle.


Код:
format(CheckAmmoString,sizeof(CheckAmmoString),"{FFFF00}> Warning !  %s ( ID: %i ) possible ammo hack ( In Vehicle/DriveBy: True/False Weapon: (ID:%d) Ammo: %i ) ", 
ReturnPlayerName(playerid),
 playerid,
 GetPlayerWeapon(playerid), 
GetPlayerAmmo(playerid));
Reply
#2

pawn Код:
format(CheckAmmoString,sizeof(CheckAmmoString),"%s",
(IsPlayerInAnyVehicle(playerid)) ? ("True") : ("False"));
Reply
#3

Nice, it's work, thx.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)