[POMOC] undefined symbol

Započeo Antonio_Bena
14. Sep. 2012. Zaključano
978
pregleda
14
postova
Antonio_Bena
4
Shot Caller
14. Sep. 2012.
Skripta koju koristim: CLRP
Detaljan opis problema:
C:\Documents and Settings\Antonio.BENA.016\Desktop\Test RPG\gamemodes\CLRP.pwn(44959) : error 017: undefined symbol "carid"
C:\Documents and Settings\Antonio.BENA.016\Desktop\Test RPG\gamemodes\CLRP.pwn(44960) : error 017: undefined symbol "carid"
C:\Documents and Settings\Antonio.BENA.016\Desktop\Test RPG\gamemodes\CLRP.pwn(44961) : error 017: undefined symbol "carid"
C:\Documents and Settings\Antonio.BENA.016\Desktop\Test RPG\gamemodes\CLRP.pwn(44962) : error 017: undefined symbol "carid"
C:\Documents and Settings\Antonio.BENA.016\Desktop\Test RPG\gamemodes\CLRP.pwn(44963) : error 017: undefined symbol "carid"
C:\Documents and Settings\Antonio.BENA.016\Desktop\Test RPG\gamemodes\CLRP.pwn(44964) : error 017: undefined symbol "carid"
C:\Documents and Settings\Antonio.BENA.016\Desktop\Test RPG\gamemodes\CLRP.pwn(44965) : error 017: undefined symbol "carid"
C:\Documents and Settings\Antonio.BENA.016\Desktop\Test RPG\gamemodes\CLRP.pwn(44966) : error 017: undefined symbol "carid"
C:\Documents and Settings\Antonio.BENA.016\Desktop\Test RPG\gamemodes\CLRP.pwn(44980) : error 017: undefined symbol "carid"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


Dio skripte:
if(CP == 1600 && IsAGorivo(carid)&& IsTrailerAttachedToVehicle(carid)) { CP = 1601; TogglePlayerControllable(playerid, 0); Gorivo12 = 1; GameTextForPlayer(playerid, "~b~Sacekaj da se gorivo~n~~g~istoci", 3000, 4);TogglePlayerControllable(playerid, 0); SetTimerEx("Gorivo2",13000, false, "i", playerid); DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1937.2955,-1776.0560,13.3828,10.0); }
    else if(CP == 1601 && IsAGorivo(carid)&& IsTrailerAttachedToVehicle(carid)) { CP = 1602; TogglePlayerControllable(playerid, 0); Gorivo12 = 1; GameTextForPlayer(playerid, "~b~Sacekaj da se gorivo~n~~g~istoci", 3000, 4);TogglePlayerControllable(playerid, 0); SetTimerEx("Gorivo2",13000, false, "i", playerid); DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1004.9973,-940.4534,42.1797,10.0); }
    else if(CP == 1602 && IsAGorivo(carid)&& IsTrailerAttachedToVehicle(carid)) { CP = 1603; TogglePlayerControllable(playerid, 0); Gorivo12 = 1; GameTextForPlayer(playerid, "~b~Sacekaj da se gorivo~n~~g~istoci", 3000, 4);TogglePlayerControllable(playerid, 0); SetTimerEx("Gorivo2",13000, false, "i", playerid); DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 651.6285,-564.7838,16.3301,10.0); }
else if(CP == 1603 && IsAGorivo(carid)&& IsTrailerAttachedToVehicle(carid)) { CP = 1604; TogglePlayerControllable(playerid, 0); Gorivo12 = 1; GameTextForPlayer(playerid, "~b~Sacekaj da se gorivo~n~~g~istoci", 3000, 4);TogglePlayerControllable(playerid, 0); SetTimerEx("Gorivo2",13000, false, "i", playerid); DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 1380.9648,456.1190,19.8869,10.0); }
else if(CP == 1604 && IsAGorivo(carid)&& IsTrailerAttachedToVehicle(carid)) { CP = 1605; TogglePlayerControllable(playerid, 0); Gorivo12 = 1; GameTextForPlayer(playerid, "~b~Sacekaj da se gorivo~n~~g~istoci", 3000, 4);TogglePlayerControllable(playerid, 0); SetTimerEx("Gorivo2",13000, false, "i", playerid); DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -98.0867,-1167.2094,2.5977,10.0); }
    else if(CP == 1605 && IsAGorivo(carid)&& IsTrailerAttachedToVehicle(carid)) { CP = 1606; TogglePlayerControllable(playerid, 0); Gorivo12 = 1; GameTextForPlayer(playerid, "~b~Sacekaj da se gorivo~n~~g~istoci", 3000, 4);TogglePlayerControllable(playerid, 0); SetTimerEx("Gorivo2",13000, false, "i", playerid); DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 2430.8547,-2113.4102,13.5469,10.0); }
else if(CP == 1606 && IsAGorivo(carid)&& IsTrailerAttachedToVehicle(carid)) { CP = 1607; TogglePlayerControllable(playerid, 0); Gorivo12 = 1; GameTextForPlayer(playerid, "~r~Zavrsili ste ~n~~g~posao", 3000, 4);TogglePlayerControllable(playerid, 0); SetTimerEx("Gorivo2",13000, false, "i", playerid); DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, 2509,-2089,13.54,10.0); }
  if(CP == 1607 && IsAGorivo(carid)&& IsTrailerAttachedToVehicle(carid))
  {
new randpay = 1900 + random(100);
new bonus = 200 + random(100);
GivePlayerMoney(playerid, randpay+ bonus);
TogglePlayerControllable(playerid, 1);
DisablePlayerCheckpoint(playerid);
    format(string, sizeof(string), "{995031}Zarada: %d$ | Bonus: %d$ | Ukupna zarada: %d$.", randpay,bonus,randpay + bonus);
SendClientMessage(playerid, 0x9A6735FF, string);
    SBizzInfo += 250;
    ExtortionSBiz(3, 250);
    SBizzInfo--;
Gorivo12 = 1;
PlayerInfo = 0;
new taj = GetVehicleTrailer(carid);
SetVehicleToRespawn(taj);
    }
   

Neke slike/video za lakse dobivanje pomoci(neobavezno):
Deekline
4
Shot Caller
14. Sep. 2012.
Na pocetku skripte di su ti drugi definirani simboli tipa #define, ispod zadnjeg dodaj #define carid i compile.

Pozdrav!
Daniel_Fazlijevic
5
Crime Lord
14. Sep. 2012.
benaca wrote on September 14, 2012, 11:21 am:
#define (carid);

to dodaj ispod #include
SkyTopâ„¢ wrote on September 14, 2012, 11:01 am:
Na pocetku skripte di su ti drugi definirani simboli tipa #define, ispod zadnjeg dodaj #define carid i compile.

Pozdrav!

Sta pricate vi😕

new carid = GetPlayerVehicleID(playerid);
Antonio_Bena
4
Shot Caller
14. Sep. 2012.
neradi ovo vase
Daniel_Fazlijevic
5
Crime Lord
14. Sep. 2012.
Dodaj ovo sto sam ti vec napisao iznad svega toga , trebalo bi raditi..
Antonio_Bena
4
Shot Caller
14. Sep. 2012.
sad ovo baca
C:\Documents and Settings\Antonio.BENA.016\Desktop\Test RPG\gamemodes\CLRP.pwn(45278) : warning 219: local variable "carid" shadows a variable at a preceding level
C:\Documents and Settings\Antonio.BENA.016\Desktop\Test RPG\gamemodes\CLRP.pwn(50112) : warning 219: local variable "carid" shadows a variable at a preceding level
C:\Documents and Settings\Antonio.BENA.016\Desktop\Test RPG\gamemodes\CLRP.pwn(51019) : warning 219: local variable "carid" shadows a variable at a preceding level
C:\Documents and Settings\Antonio.BENA.016\Desktop\Test RPG\gamemodes\CLRP.pwn(52145) : warning 219: local variable "carid" shadows a variable at a preceding level
C:\Documents and Settings\Antonio.BENA.016\Desktop\Test RPG\gamemodes\CLRP.pwn(52198) : warning 219: local variable "carid" shadows a variable at a preceding level
C:\Documents and Settings\Antonio.BENA.016\Desktop\Test RPG\gamemodes\CLRP.pwn(54301) : warning 219: local variable "carid" shadows a variable at a preceding level
C:\Documents and Settings\Antonio.BENA.016\Desktop\Test RPG\gamemodes\CLRP.pwn(58599) : warning 219: local variable "carid" shadows a variable at a preceding level
Daniel_Fazlijevic
5
Crime Lord
14. Sep. 2012.
To nisu errori nego warrninzi. Sa njima mozes da kompilas i mod bi trebalo da ti radi.
Antonio_Bena
4
Shot Caller
14. Sep. 2012.
IG mogu da uđem samo u 2 kamion od njih 4 , i kad dodem do prvog checkpointa samo stojim nepriznaje da sam na njemu, a kad zakacim prikolicu za kamion i ukucam /nitro freeza me i pise sacekaj da se gorivo istoci,,, a opce niasm na checkpointu.. neko help?
Deleted User
Obrisan korisnik
14. Sep. 2012.
OnPlayerEnterCheckpoint, tu napravi provjere za CPove.
Antonio_Bena
4
Shot Caller
14. Sep. 2012.
jsm sad rade checkpointi al kad dodem moram cekat preko 10 min da me unfreeza
Deleted User
Obrisan korisnik
14. Sep. 2012.
Ako imaš tu tajmer onda je prevelik.
Luis
5
Godfather
14. Sep. 2012.
Antonio_Bena wrote on September 14, 2012, 12:13 pm:
sad ovo baca
C:\Documents and Settings\Antonio.BENA.016\Desktop\Test RPG\gamemodes\CLRP.pwn(45278) : warning 219: local variable "carid" shadows a variable at a preceding level
C:\Documents and Settings\Antonio.BENA.016\Desktop\Test RPG\gamemodes\CLRP.pwn(50112) : warning 219: local variable "carid" shadows a variable at a preceding level
C:\Documents and Settings\Antonio.BENA.016\Desktop\Test RPG\gamemodes\CLRP.pwn(51019) : warning 219: local variable "carid" shadows a variable at a preceding level
C:\Documents and Settings\Antonio.BENA.016\Desktop\Test RPG\gamemodes\CLRP.pwn(52145) : warning 219: local variable "carid" shadows a variable at a preceding level
C:\Documents and Settings\Antonio.BENA.016\Desktop\Test RPG\gamemodes\CLRP.pwn(52198) : warning 219: local variable "carid" shadows a variable at a preceding level
C:\Documents and Settings\Antonio.BENA.016\Desktop\Test RPG\gamemodes\CLRP.pwn(54301) : warning 219: local variable "carid" shadows a variable at a preceding level
C:\Documents and Settings\Antonio.BENA.016\Desktop\Test RPG\gamemodes\CLRP.pwn(58599) : warning 219: local variable "carid" shadows a variable at a preceding level


to sve obriši zato sto imaš već negdje definiranu tu varijablu.
Antonio_Bena
4
Shot Caller
14. Sep. 2012.
SetTimerEx("Gorivo2",100, false, "i", playerid);


bilo je na 130000 sad sam stavio na 100 i jos uvjek dugo cekam
Antonio_Bena
4
Shot Caller
15. Sep. 2012.
Rješio sam može LOCK !!

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha