06.04.2013, 11:16
(
Last edited by TheSka; 06/04/2013 at 12:12 PM.
)
I get these 3 warnings while compiling my script. 2nd and 3rd warning is fixed.
-----------------
1st warning = redundant test: constant expression is non-zero
Code relating to the error
Specific code related to the error
Hope you can at-least tell me what's the problem, I will appreciate it!
-----------------
1st warning = redundant test: constant expression is non-zero
Code relating to the error
pawn Code:
if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
{
new vehicleid = GetPlayerVehicleID(playerid),
playingid = v_VehicleInfo[vehicleid][RadioPlaying];
if(TEXTDRAWSET == 2)
{
format(string,sizeof(string),"Listening to: ~n~~w~%s",r_RadioInfo[playingid][r_Name]);
TextDrawSetString(v_VehicleInfo[vehicleid][r_Draw],string);
}
else
{
TextDrawSetString(v_VehicleInfo[vehicleid][r_Draw],r_RadioInfo[playingid][r_Name]);
}
TextDrawShowForPlayer(playerid,v_VehicleInfo[vehicleid][r_Draw]);
SetPVarInt(playerid,"ID_HideRadioTextdraw",SetTimerEx("HideRadioTextdraw",TEXTDRAW_DISAPPEAR_TIME,false,"ii",playerid,vehicleid));
PlayAudioStreamForPlayer(playerid,r_RadioInfo[playingid][r_Link]);
SetPVarInt(playerid,"ID_OldVehicle",vehicleid);
}
pawn Code:
if(TEXTDRAWSET == 2)