BNS::UpdateRadar()
{
new gstring[256];
foreach(Player, i)
{
if(GetPlayerState(i) == PLAYER_STATE_DRIVER && !OnDuty[i] && GetVehicleModel(GetPlayerVehicleID(i)) != 510)
{
for(new ii = 0; ii < 45; ii++)
{
if(IsPlayerInRangeOfPoint(i, 08.0, RadarInfo[ii][R_X],RadarInfo[ii][R_Y],RadarInfo[ii][R_Z]))
{
if(GetPlayerVehicleSpeed(i) > RadarInfo[ii][R_Velo])
{
PlayerPlaySound(i, 1132, 0.0, 0.0, 0.0);
format(gstring, 127, "((RADAR)): {B4B5B7}Vocк foi pego a {FFFFFF}%dkm/h {B4B5B7}na regiгo onde a velocidade mбxima й de {FFFFFF}%dkm/h", GetPlayerVehicleSpeed(i), RadarInfo[ii][R_Velo]);
SendClientMessage(i, -1, gstring);
PlayerInfo[i][pMultas] += 95;
return true;
}
}
}
}
}
for(new uu = 0; uu < 45; uu++)
{
if(mostrarv)
{
format(gstring, sizeof gstring, "(( RADAR ))\nMбxima velocidade: %d km/h", RadarInfo[uu][R_Velo]);
Update3DTextLabelText(RadarInfo[uu][TextRadar],0xFFFF00F6, gstring);
mostrarv = false;
}
else
{
Update3DTextLabelText(RadarInfo[uu][TextRadar],0xFFFF00F6, "(( RADAR ))");
mostrarv = true;
}
}
return 0;
}
BNS::UpdateRadar()
{
new gstring[256];
foreach(Player, i)
{
if(GetPlayerState(i) == PLAYER_STATE_DRIVER && !OnDuty[i] && GetVehicleModel(GetPlayerVehicleID(i)) != 510)
{
for(new ii = 0; ii < 45; ii++)
{
if(IsPlayerInRangeOfPoint(i, 08.0, RadarInfo[ii][R_X],RadarInfo[ii][R_Y],RadarInfo[ii][R_Z]))
{
if(GetPlayerVehicleSpeed(i) > RadarInfo[ii][R_Velo])
{
PlayerPlaySound(i, 1132, 0.0, 0.0, 0.0);
format(gstring, 127, "((RADAR)): {B4B5B7}Vocк foi pego a {FFFFFF}%dkm/h {B4B5B7}na regiгo onde a velocidade mбxima й de {FFFFFF}%dkm/h", GetPlayerVehicleSpeed(i), RadarInfo[ii][R_Velo]);
PlayerInfo[i][pMultas] += 95;
return true;
}
}
}
SendClientMessage(i, -1, gstring);
}
}
for(new uu = 0; uu < 45; uu++)
{
if(mostrarv)
{
format(gstring, sizeof gstring, "(( RADAR ))\nMбxima velocidade: %d km/h", RadarInfo[uu][R_Velo]);
Update3DTextLabelText(RadarInfo[uu][TextRadar],0xFFFF00F6, gstring);
mostrarv = false;
}
else
{
Update3DTextLabelText(RadarInfo[uu][TextRadar],0xFFFF00F6, "(( RADAR ))");
mostrarv = true;
}
}
return 0;
}
BNS::UpdateRadar(playerid)
{
new gstring[256];
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER && !OnDuty[playerid] && GetVehicleModel(GetPlayerVehicleID(playerid)) != 510)
{
for(new i = 0; i < 45; i++)
{
if(IsPlayerInRangeOfPoint(playerid, 08.0, RadarInfo[i][R_X],RadarInfo[i][R_Y],RadarInfo[i][R_Z]))
{
if(GetPlayerVehicleSpeed(playerid) > RadarInfo[i][R_Velo])
{
PlayerPlaySound(playerid, 1132, 0.0, 0.0, 0.0);
format(gstring, 127, "((RADAR)): {B4B5B7}Vocк foi pego a {FFFFFF}%dkm/h {B4B5B7}na regiгo onde a velocidade mбxima й de {FFFFFF}%dkm/h", GetPlayerVehicleSpeed(i), RadarInfo[ii][R_Velo]);
SendClientMessage(playerid, -1, gstring);
PlayerInfo[playerid][pMultas] += 95;
return true;
}
}
}
}
for(new uu = 0; uu < 45; uu++)
{
if(mostrarv)
{
format(gstring, sizeof gstring, "(( RADAR ))\nMбxima velocidade: %d km/h", RadarInfo[uu][R_Velo]);
Update3DTextLabelText(RadarInfo[uu][TextRadar],0xFFFF00F6, gstring);
mostrarv = false;
}
else
{
Update3DTextLabelText(RadarInfo[uu][TextRadar],0xFFFF00F6, "(( RADAR ))");
mostrarv = true;
}
}
return 0;
}
(40040) : error 017: undefined symbol "ii" |
format(gstring, 127, "((RADAR)): {B4B5B7}Vocк foi pego a {FFFFFF}%dkm/h {B4B5B7}na regiгo onde a velocidade mбxima й de {FFFFFF}%dkm/h", GetPlayerVehicleSpeed(i), RadarInfo[ii][R_Velo]); |
format(gstring, sizeof(gstring), "((RADAR)): {B4B5B7}Vocк foi pego a {FFFFFF}%dkm/h {B4B5B7}na regiгo onde a velocidade mбxima й de {FFFFFF}%dkm/h", GetPlayerVehicleSpeed(i), RadarInfo[i][R_Velo]);
format(gstring, 127, "((RADAR)): {B4B5B7}Vocк foi pego a {FFFFFF}%dkm/h {B4B5B7}na regiгo onde a velocidade mбxima й de {FFFFFF}%dkm/h", GetPlayerVehicleSpeed(i), RadarInfo[i][R_Velo]);
SetTimer("UpdateRadar", 2*1000, 1);
BNS::UpdateRadar(playerid)
{
new gstring[256];
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER && !OnDuty[playerid] && GetVehicleModel(GetPlayerVehicleID(playerid)) != 510)
{
for(new i = 0; i < 45; i++)
{
if(IsPlayerInRangeOfPoint(playerid, 08.0, RadarInfo[i][R_X],RadarInfo[i][R_Y],RadarInfo[i][R_Z]))
{
if(GetPlayerVehicleSpeed(playerid) > RadarInfo[i][R_Velo])
{
PlayerPlaySound(playerid, 1132, 0.0, 0.0, 0.0);
format(gstring, 127, "((RADAR)): {B4B5B7}Vocк foi pego a {FFFFFF}%dkm/h {B4B5B7}na regiгo onde a velocidade mбxima й de {FFFFFF}%dkm/h", GetPlayerVehicleSpeed(i), RadarInfo[i][R_Velo]);
SendClientMessage(playerid, -1, gstring);
PlayerInfo[playerid][pMultas] += 95;
return true;
}
}
}
}
for(new uu = 0; uu < 45; uu++)
{
if(mostrarv)
{
format(gstring, sizeof gstring, "(( RADAR ))\nMбxima velocidade: %d km/h", RadarInfo[uu][R_Velo]);
Update3DTextLabelText(RadarInfo[uu][TextRadar],0xFFFF00F6, gstring);
mostrarv = false;
}
else
{
Update3DTextLabelText(RadarInfo[uu][TextRadar],0xFFFF00F6, "(( RADAR ))");
mostrarv = true;
}
}
return 0;
}
BNS::UpdateRadar(playerid)
{
new gstring[256];
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER && !OnDuty[playerid] && GetVehicleModel(GetPlayerVehicleID(playerid)) != 510)
{
for(new i = 0; i < 45; i++)
{
if(IsPlayerInRangeOfPoint(playerid, 08.0, RadarInfo[i][R_X],RadarInfo[i][R_Y],RadarInfo[i][R_Z]))
{
if(GetPlayerVehicleSpeed(playerid) > RadarInfo[i][R_Velo])
{
PlayerPlaySound(playerid, 1132, 0.0, 0.0, 0.0);
format(gstring,sizeof(gsstring) ,"((RADAR)): {B4B5B7}Vocк foi pego a {FFFFFF}%dkm/h {B4B5B7}na regiгo onde a velocidade mбxima й de {FFFFFF}%dkm/h", GetPlayerVehicleSpeed(i), RadarInfo[i][R_Velo]);
SendClientMessage(playerid, -1, gstring);
PlayerInfo[playerid][pMultas] += 95;
return true;
}
}
}
}
for(new uu = 0; uu < 45; uu++)
{
if(mostrarv)
{
format(gstring, sizeof gstring, "(( RADAR ))\nMбxima velocidade: %d km/h", RadarInfo[uu][R_Velo]);
Update3DTextLabelText(RadarInfo[uu][TextRadar],0xFFFF00F6, gstring);
mostrarv = false;
}
else
{
Update3DTextLabelText(RadarInfo[uu][TextRadar],0xFFFF00F6, "(( RADAR ))");
mostrarv = true;
}
}
return 0;
}
Player passou acima da velocidade,Executado 1,Executado 2
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER && !OnDuty[playerid] && GetVehicleModel(GetPlayerVehicleID(playerid)) != 510)
{
for(new i = 0; i < 45; i++)
{
if(IsPlayerInRangeOfPoint(playerid, 08.0, RadarInfo[i][R_X],RadarInfo[i][R_Y],RadarInfo[i][R_Z]))
{
if(GetPlayerVehicleSpeed(playerid) > RadarInfo[i][R_Velo])
{
print("Player passou acima da velocidade");
PlayerPlaySound(playerid, 1132, 0.0, 0.0, 0.0);
format(gstring,sizeof(gsstring) ,"((RADAR)): {B4B5B7}Vocк foi pego a {FFFFFF}%dkm/h {B4B5B7}na regiгo onde a velocidade mбxima й de {FFFFFF}%dkm/h", GetPlayerVehicleSpeed(i), RadarInfo[i][R_Velo]);
print("Executado 1");
SendClientMessage(playerid, -1, gstring);
print("Executado 2");
PlayerInfo[playerid][pMultas] += 95;
return true;
}
}
}
}