mod koji koristim:GF
opis problema: Radim speedo i sad kad sam ubacio TD ispod gamemodinit izbacilo mi je 24 erora
error 017: undefined symbol "playerid"
error 017: undefined symbol "playerid"
error 017: undefined symbol "playerid"...
/*--------------------|brzinomjer 😄 |--------------------*/
TDPSpeedo = TextDrawCreate(580.000000, 416.000000, "80.00 L");
TextDrawBackgroundColor(TDPSpeedo, 255);
TextDrawFont(TDPSpeedo, 3);
TextDrawLetterSize(TDPSpeedo, 0.300000, 1.09999😎;
TextDrawColor(TDPSpeedo, -1);
TextDrawSetOutline(TDPSpeedo, 0);
TextDrawSetProportional(TDPSpeedo, 1);
TextDrawSetShadow(TDPSpeedo, 1);
TDPSpeedo = TextDrawCreate(579.000000, 377.000000, "123"); // Pokazivac brzine
TextDrawBackgroundColor(TDPSpeedo, 255);
TextDrawFont(TDPSpeedo, 3);
TextDrawLetterSize(TDPSpeedo, 0.500000, 2.000000);
TextDrawColor(TDPSpeedo, -1);
TextDrawSetOutline(TDPSpeedo, 0);
TextDrawSetProportional(TDPSpeedo, 1);
TextDrawSetShadow(TDPSpeedo, 1);
TDPSpeedo = TextDrawCreate(624.000000, 373.000000, "~g~O~n~~w~O~n~O"); // Ostecenost vozila
TextDrawBackgroundColor(TDPSpeedo, 255);
TextDrawFont(TDPSpeedo, 1);
TextDrawLetterSize(TDPSpeedo, 0.300000, 1.100000);
TextDrawColor(TDPSpeedo, -1);
TextDrawSetOutline(TDPSpeedo, 0);
TextDrawSetProportional(TDPSpeedo, 1);
TextDrawSetShadow(TDPSpeedo, 1);
TDPSpeedo = TextDrawCreate(568.000000, 429.000000, "~r~ | LOW |");
TextDrawBackgroundColor(TDPSpeedo, 255);
TextDrawFont(TDPSpeedo, 3);
TextDrawLetterSize(TDPSpeedo, 0.300000, 1.09999😎;
TextDrawColor(TDPSpeedo, -1);
TextDrawSetOutline(TDPSpeedo, 0);
TextDrawSetProportional(TDPSpeedo, 1);
TextDrawSetShadow(TDPSpeedo, 1);
for(new playerid = 0; playerid < MAX_PLAYERS;playerid++)
SetTimer("FuelDown", 15 * 1000, 1);
slika :http://imageshack.us/photo/my-images/3/erori.png/
[pomoc]24 erora
546
pregleda
5
postova
28. Dec. 2011.
28. Dec. 2011.
Taj loop treba da ide iznad
Ovako:
Ovako:
for(new playerid = 0; playerid < MAX_PLAYERS;playerid++)
{
/*--------------------|brzinomjer Sirast |--------------------*/
TDPSpeedo = TextDrawCreate(580.000000, 416.000000, "80.00 L");
TextDrawBackgroundColor(TDPSpeedo, 255);
TextDrawFont(TDPSpeedo, 3);
TextDrawLetterSize(TDPSpeedo, 0.300000, 1.099998);
TextDrawColor(TDPSpeedo, -1);
TextDrawSetOutline(TDPSpeedo, 0);
TextDrawSetProportional(TDPSpeedo, 1);
TextDrawSetShadow(TDPSpeedo, 1);
TDPSpeedo = TextDrawCreate(579.000000, 377.000000, "123"); // Pokazivac brzine
TextDrawBackgroundColor(TDPSpeedo, 255);
TextDrawFont(TDPSpeedo, 3);
TextDrawLetterSize(TDPSpeedo, 0.500000, 2.000000);
TextDrawColor(TDPSpeedo, -1);
TextDrawSetOutline(TDPSpeedo, 0);
TextDrawSetProportional(TDPSpeedo, 1);
TextDrawSetShadow(TDPSpeedo, 1);
TDPSpeedo = TextDrawCreate(624.000000, 373.000000, "~g~O~n~~w~O~n~O"); // Ostecenost vozila
TextDrawBackgroundColor(TDPSpeedo, 255);
TextDrawFont(TDPSpeedo, 1);
TextDrawLetterSize(TDPSpeedo, 0.300000, 1.100000);
TextDrawColor(TDPSpeedo, -1);
TextDrawSetOutline(TDPSpeedo, 0);
TextDrawSetProportional(TDPSpeedo, 1);
TextDrawSetShadow(TDPSpeedo, 1);
TDPSpeedo = TextDrawCreate(568.000000, 429.000000, "~r~ | LOW |");
TextDrawBackgroundColor(TDPSpeedo, 255);
TextDrawFont(TDPSpeedo, 3);
TextDrawLetterSize(TDPSpeedo, 0.300000, 1.099998);
TextDrawColor(TDPSpeedo, -1);
TextDrawSetOutline(TDPSpeedo, 0);
TextDrawSetProportional(TDPSpeedo, 1);
TextDrawSetShadow(TDPSpeedo, 1);
}
SetTimer("FuelDown", 15 * 1000, 1);28. Dec. 2011.
radi hvala ti puno 😄 al sad drugi problem ☹️ ! kad izbaci spedo izbaci flash od radara cim izadjem iz auta unisti taj flesh i speedo cim opet sjedem opet izbaci speedo i flash !cc sta da radim ☹️
28. Dec. 2011.
taj flash je od gCam al evo kod
public OnFilterScriptInit()
{
SetTimer("UpdateCameras",CAMERA_UPDATE_INTERVAL,true);
flash = TextDrawCreate(-20.000000,2.000000,"|");
TextDrawUseBox(flash,1);
TextDrawBoxColor(flash,0xffffff66);
TextDrawTextSize(flash,660.000000,22.000000);
TextDrawAlignment(flash,0);
TextDrawBackgroundColor(flash,0x000000ff);
TextDrawFont(flash,3);
TextDrawLetterSize(flash,1.000000,52.200000);
TextDrawColor(flash,0xffffffff);
TextDrawSetOutline(flash,1);
TextDrawSetProportional(flash,1);
TextDrawSetShadow(flash,1);
forward UpdateCameras();
public UpdateCameras()
{
for(new a = 0;a {
if(!IsPlayerConnected(a)) continue;
if(!IsPlayerInAnyVehicle(a)) continue;
if(GetPVarInt(a,"PlayerHasBeenFlashed") == 1)
{
continue;
} else if (GetPVarInt(a,"PlayerHasBeenFlashed") == 2)
{
DeletePVar(a,"PlayerHasBeenFlashed");
continue;
}
for(new b = 0;b {
if(SpeedCameras == false) continue;
if(IsPlayerInRangeOfPoint(a,SpeedCameras,SpeedCameras,SpeedCameras,SpeedCameras))
{
new speed = floatround(GetVehicleSpeed(GetPlayerVehicleID(a),SpeedCameras));
new limit = SpeedCameras;
if(speed > limit)
{
TextDrawShowForPlayer(a,flash);
SetPVarInt(a,"PlayerHasBeenFlashed",1);
SetTimerEx("RemoveFlash",CAMERA_FLASH_TIME,false,"i",a);
if(GetPlayerState(a) == PLAYER_STATE_DRIVER)
{
if(SpeedCameras == 0)
{
SendClientMessageEx(a,0xFF1E00FF,"sisis","Voziš prevelikom brzinom! Radar te je snimio da voziš ",speed,"kmh na mjestu gdje je dozvoljeno ",limit, "kmh.");
SendClientMessageEx(a,0xFF1E00FF,"sis","Dobio si kaznu od $",SpeedCameras,".");
} else {
SendClientMessageEx(a,0xFF1E00FF,"sisis","Voziš prevelikom brzinom! Radar te je snimio da voziš ",speed,"mph na mjestu gdje je dozvoljeno ",limit, "mph.");
SendClientMessageEx(a,0xFF1E00FF,"sis","Dobio si kaznu od $",SpeedCameras,".");
}
GivePlayerMoney(a, - SpeedCameras);
}
}
}
}
}
}
forward RemoveFlash(playerid);
public RemoveFlash(playerid)
{
TextDrawHideForPlayer(playerid,flash);
SetPVarInt(playerid,"PlayerHasBeenFlashed",2);
}
//nadam se da je to
evo slike : http://imageshack.us/g/818/samp290o.png/
public OnFilterScriptInit()
{
SetTimer("UpdateCameras",CAMERA_UPDATE_INTERVAL,true);
flash = TextDrawCreate(-20.000000,2.000000,"|");
TextDrawUseBox(flash,1);
TextDrawBoxColor(flash,0xffffff66);
TextDrawTextSize(flash,660.000000,22.000000);
TextDrawAlignment(flash,0);
TextDrawBackgroundColor(flash,0x000000ff);
TextDrawFont(flash,3);
TextDrawLetterSize(flash,1.000000,52.200000);
TextDrawColor(flash,0xffffffff);
TextDrawSetOutline(flash,1);
TextDrawSetProportional(flash,1);
TextDrawSetShadow(flash,1);
forward UpdateCameras();
public UpdateCameras()
{
for(new a = 0;a
if(!IsPlayerConnected(a)) continue;
if(!IsPlayerInAnyVehicle(a)) continue;
if(GetPVarInt(a,"PlayerHasBeenFlashed") == 1)
{
continue;
} else if (GetPVarInt(a,"PlayerHasBeenFlashed") == 2)
{
DeletePVar(a,"PlayerHasBeenFlashed");
continue;
}
for(new b = 0;b
if(SpeedCameras == false) continue;
if(IsPlayerInRangeOfPoint(a,SpeedCameras,SpeedCameras,SpeedCameras,SpeedCameras))
{
new speed = floatround(GetVehicleSpeed(GetPlayerVehicleID(a),SpeedCameras));
new limit = SpeedCameras;
if(speed > limit)
{
TextDrawShowForPlayer(a,flash);
SetPVarInt(a,"PlayerHasBeenFlashed",1);
SetTimerEx("RemoveFlash",CAMERA_FLASH_TIME,false,"i",a);
if(GetPlayerState(a) == PLAYER_STATE_DRIVER)
{
if(SpeedCameras == 0)
{
SendClientMessageEx(a,0xFF1E00FF,"sisis","Voziš prevelikom brzinom! Radar te je snimio da voziš ",speed,"kmh na mjestu gdje je dozvoljeno ",limit, "kmh.");
SendClientMessageEx(a,0xFF1E00FF,"sis","Dobio si kaznu od $",SpeedCameras,".");
} else {
SendClientMessageEx(a,0xFF1E00FF,"sisis","Voziš prevelikom brzinom! Radar te je snimio da voziš ",speed,"mph na mjestu gdje je dozvoljeno ",limit, "mph.");
SendClientMessageEx(a,0xFF1E00FF,"sis","Dobio si kaznu od $",SpeedCameras,".");
}
GivePlayerMoney(a, - SpeedCameras);
}
}
}
}
}
}
forward RemoveFlash(playerid);
public RemoveFlash(playerid)
{
TextDrawHideForPlayer(playerid,flash);
SetPVarInt(playerid,"PlayerHasBeenFlashed",2);
}
//nadam se da je to
evo slike : http://imageshack.us/g/818/samp290o.png/
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava