[pomoc]24 erora

Započeo Aldin Begovic, Decembar 28, 2011, 21:40:32 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

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 :D |--------------------*/
   TDPSpeedo[playerid][0] = TextDrawCreate(580.000000, 416.000000, "80.00 L");
   TextDrawBackgroundColor(TDPSpeedo[playerid][0], 255);
   TextDrawFont(TDPSpeedo[playerid][0], 3);
   TextDrawLetterSize(TDPSpeedo[playerid][0], 0.300000, 1.099998);
   TextDrawColor(TDPSpeedo[playerid][0], -1);
   TextDrawSetOutline(TDPSpeedo[playerid][0], 0);
   TextDrawSetProportional(TDPSpeedo[playerid][0], 1);
   TextDrawSetShadow(TDPSpeedo[playerid][0], 1);

   TDPSpeedo[playerid][1] = TextDrawCreate(579.000000, 377.000000, "123"); // Pokazivac brzine
   TextDrawBackgroundColor(TDPSpeedo[playerid][1], 255);
   TextDrawFont(TDPSpeedo[playerid][1], 3);
   TextDrawLetterSize(TDPSpeedo[playerid][1], 0.500000, 2.000000);
   TextDrawColor(TDPSpeedo[playerid][1], -1);
   TextDrawSetOutline(TDPSpeedo[playerid][1], 0);
   TextDrawSetProportional(TDPSpeedo[playerid][1], 1);
   TextDrawSetShadow(TDPSpeedo[playerid][1], 1);

   TDPSpeedo[playerid][2] = TextDrawCreate(624.000000, 373.000000, "~g~O~n~~w~O~n~O"); // Ostecenost vozila
   TextDrawBackgroundColor(TDPSpeedo[playerid][2], 255);
   TextDrawFont(TDPSpeedo[playerid][2], 1);
   TextDrawLetterSize(TDPSpeedo[playerid][2], 0.300000, 1.100000);
   TextDrawColor(TDPSpeedo[playerid][2], -1);
   TextDrawSetOutline(TDPSpeedo[playerid][2], 0);
   TextDrawSetProportional(TDPSpeedo[playerid][2], 1);
   TextDrawSetShadow(TDPSpeedo[playerid][2], 1);
   

   TDPSpeedo[playerid][3] = TextDrawCreate(568.000000, 429.000000, "~r~ | LOW |");
   TextDrawBackgroundColor(TDPSpeedo[playerid][0], 255);
   TextDrawFont(TDPSpeedo[playerid][3], 3);
   TextDrawLetterSize(TDPSpeedo[playerid][0], 0.300000, 1.099998);
   TextDrawColor(TDPSpeedo[playerid][3], -1);
   TextDrawSetOutline(TDPSpeedo[playerid][3], 0);
   TextDrawSetProportional(TDPSpeedo[playerid][3], 1);
   TextDrawSetShadow(TDPSpeedo[playerid][3], 1);
   

    for(new playerid = 0; playerid < MAX_PLAYERS;playerid++)
   SetTimer("FuelDown", 15 * 1000, 1);
slika : http://imageshack.us/photo/my-images/3/erori.png/

Mr.Gagi

Taj loop treba da ide iznad
Ovako:
for(new playerid = 0; playerid < MAX_PLAYERS;playerid++)
{
/*--------------------|brzinomjer Sirast |--------------------*/
   TDPSpeedo[playerid][0] = TextDrawCreate(580.000000, 416.000000, "80.00 L");
   TextDrawBackgroundColor(TDPSpeedo[playerid][0], 255);
   TextDrawFont(TDPSpeedo[playerid][0], 3);
   TextDrawLetterSize(TDPSpeedo[playerid][0], 0.300000, 1.099998);
   TextDrawColor(TDPSpeedo[playerid][0], -1);
   TextDrawSetOutline(TDPSpeedo[playerid][0], 0);
   TextDrawSetProportional(TDPSpeedo[playerid][0], 1);
   TextDrawSetShadow(TDPSpeedo[playerid][0], 1);

   TDPSpeedo[playerid][1] = TextDrawCreate(579.000000, 377.000000, "123"); // Pokazivac brzine
   TextDrawBackgroundColor(TDPSpeedo[playerid][1], 255);
   TextDrawFont(TDPSpeedo[playerid][1], 3);
   TextDrawLetterSize(TDPSpeedo[playerid][1], 0.500000, 2.000000);
   TextDrawColor(TDPSpeedo[playerid][1], -1);
   TextDrawSetOutline(TDPSpeedo[playerid][1], 0);
   TextDrawSetProportional(TDPSpeedo[playerid][1], 1);
   TextDrawSetShadow(TDPSpeedo[playerid][1], 1);

   TDPSpeedo[playerid][2] = TextDrawCreate(624.000000, 373.000000, "~g~O~n~~w~O~n~O"); // Ostecenost vozila
   TextDrawBackgroundColor(TDPSpeedo[playerid][2], 255);
   TextDrawFont(TDPSpeedo[playerid][2], 1);
   TextDrawLetterSize(TDPSpeedo[playerid][2], 0.300000, 1.100000);
   TextDrawColor(TDPSpeedo[playerid][2], -1);
   TextDrawSetOutline(TDPSpeedo[playerid][2], 0);
   TextDrawSetProportional(TDPSpeedo[playerid][2], 1);
   TextDrawSetShadow(TDPSpeedo[playerid][2], 1);
   

   TDPSpeedo[playerid][3] = TextDrawCreate(568.000000, 429.000000, "~r~ | LOW |");
   TextDrawBackgroundColor(TDPSpeedo[playerid][0], 255);
   TextDrawFont(TDPSpeedo[playerid][3], 3);
   TextDrawLetterSize(TDPSpeedo[playerid][0], 0.300000, 1.099998);
   TextDrawColor(TDPSpeedo[playerid][3], -1);
   TextDrawSetOutline(TDPSpeedo[playerid][3], 0);
   TextDrawSetProportional(TDPSpeedo[playerid][3], 1);
   TextDrawSetShadow(TDPSpeedo[playerid][3], 1);
   

    }
   SetTimer("FuelDown", 15 * 1000, 1);

radi hvala ti puno :D  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 :(

Daj kod gdje se odvija taj flash.

Last nick: Paradox

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<MAX_PLAYERS;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<loaded_cameras +1;b++)
       {
           if(SpeedCameras[_active] == false) continue;
           if(IsPlayerInRangeOfPoint(a,SpeedCameras[_range],SpeedCameras[_x],SpeedCameras[_y],SpeedCameras[_z]))
           {
               new speed = floatround(GetVehicleSpeed(GetPlayerVehicleID(a),SpeedCameras[_usemph]));
               new limit = SpeedCameras[_limit];
               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[_usemph] == 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[_fine],".");
                     } 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[_fine],".");
                     }
                     GivePlayerMoney(a, - SpeedCameras[_fine]);
               }
               }
           }
       }
   }
}
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/