06.06.2017, 15:20
SendClientMessage doesn't work with Floats..
change it to be like that
and change this
to this
and make sure to add at the top of the function or cmd
Code:
if(IsPlayerInAnyVehicle(playerid)) { if(GetPlayerVehicleID(playerid) != GetPlayerVehicleID(tid)) return SCM(playerid, RED, ""COL_BLUE"[ERROR]: {FFFFFF}%s has to be in the same vehicle as you to be able to rob!", GetPlayerNameEx(tid)); }
Code:
if(IsPlayerInAnyVehicle(playerid)) { if(GetPlayerVehicleID(playerid) != GetPlayerVehicleID(tid)) { format(string, sizeof(string), "[ERROR]: {FFFFFF}%s has to be in the same vehicle as you to be able to rob!", GetPlayerNameEx(tid)); SendClientMessage(playerid, RED, string); return 1; }
Code:
if(IsPlayerPaused(playerid)) return SCM(playerid, RED, ""COL_BLUE"[ERROR]: {FFFFFF}%s is paused!", GetPlayerNameEx(tid));
Code:
if(IsPlayerPaused(playerid)) { format(string, sizeof(string), "[ERROR]: {FFFFFF}%s is paused!", GetPlayerNameEx(tid)); SendClientMessage(playerid, RED, string); return 1; }
Code:
new string[128];