[Pomoć] Bicikla

Započeo [WP] Ricky, Decembar 29, 2011, 00:22:31 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Noxicus
Detaljan opis problema:Dodavao sam bicikla tj komplet /bi sistem...i dobio sam ove neke errore -.- Tj, od Motor sistem sam pravio bic sistem moram još srediti ovo izbaciti za registraicju itd :D ali ovde sam zapeo...
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):

D:\X-3 RP edit Noxicus\gamemodes\RLRP.pwn(5870) : error 029: invalid expression, assumed zero
D:\X-3 RP edit Noxicus\gamemodes\RLRP.pwn(5870) : error 017: undefined symbol "UcitajBic"
D:\X-3 RP edit Noxicus\gamemodes\RLRP.pwn(5872) : warning 219: local variable "dateiname" shadows a variable at a preceding level
D:\X-3 RP edit Noxicus\gamemodes\RLRP.pwn(5873) : warning 219: local variable "playername" shadows a variable at a preceding level
D:\X-3 RP edit Noxicus\gamemodes\RLRP.pwn(5874) : error 017: undefined symbol "Biclist"
D:\X-3 RP edit Noxicus\gamemodes\RLRP.pwn(5874) : warning 215: expression has no effect
D:\X-3 RP edit Noxicus\gamemodes\RLRP.pwn(5874) : error 001: expected token: ";", but found "]"
D:\X-3 RP edit Noxicus\gamemodes\RLRP.pwn(5874) : error 029: invalid expression, assumed zero
D:\X-3 RP edit Noxicus\gamemodes\RLRP.pwn(5874) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


6 Errors.


stock UcitajBic(playerid) //5870
{
new dateiname[128+4];//5872
new playername[MAX_PLAYER_NAME+100];//5873
Biclist[playerid][BTyp]=-1; Biclist[playerid][BX]=0.0; Biclist[playerid][BY]=0.0; Biclist[playerid][BZ]=0.0;//5874
Biclist[playerid][BRotation]=0.0; Biclist[playerid][BLock]=0; Biclist[playerid][BCarid]=-1;
Biclist[playerid][BColor1]=-1; Botolist[playerid][BColor2]=-1;
BicSpectating[playerid][0]=-1; Biclist[playerid][BBrojRegistracije] = -1;

   GetPlayerName(playerid, playername, sizeof(playername));
format(dateiname, sizeof(dateiname), "Bicovi/%s.bicovi", playername);
if (fexist(dateiname))
{
new File: BicFile = fopen(dateiname, io_read);
if ( BicFile )
{
   new key[ 256 ];
   new Data[ 256 ], val[ 256 ];
   while ( fread( BicFile , Data , sizeof( Data ) ) )
{
key = ini_GetKey(Data);
if(strcmp(key,"AH_Typ",true)==0) { Biclist[playerid][BTyp]=strval(ini_GetValue(Data)); }
else if(strcmp(key,"AH_Vmodel",true)==0) { Biclist[playerid][VicModel]=strval(ini_GetValue(Data)); }
//else if(strcmp(key,"AH_Vlasnik",true)==0) { Biclist[playerid][BVlasnik]=strlen(ini_GetValue(Data)); }
else if(strcmp(key ,"AH_Vlasnik",true)== 0) { val = ini_GetValue( Data ); strmid(Biclist[playerid][BVlasnik], val, 0, strlen(val)-1, 255); }
else if(strcmp(key,"AH_BrojRegistracije",true)==0) { Biclist[playerid][BBrojRegistracije]=strlen(ini_GetValue(Data)); }
else if(strcmp(key,"AH_MCijena",true)==0) { Biclist[playerid][BCijena]=strval(ini_GetValue(Data)); }
   else if(strcmp(key,"AH_X",true)==0) { Biclist[playerid][BX]=floatstr(ini_GetValue(Data)); }
   else if(strcmp(key,"AH_Y",true)==0) { Biclist[playerid][BY]=floatstr(ini_GetValue(Data)); }
   else if(strcmp(key,"AH_Z",true)==0) { Biclist[playerid][BZ]=floatstr(ini_GetValue(Data)); }
   else if(strcmp(key,"AH_Rot",true)==0) { Biclist[playerid][BRotation]=floatstr(ini_GetValue(Data)); }
   else if(strcmp(key,"AH_Lock",true)==0) { Biclist[playerid][BLock]=strval(ini_GetValue(Data)); }
   else if(strcmp(key,"AH_Color1",true)==0) { Biclist[playerid][BColor1]=strval(ini_GetValue(Data)); }
   else if(strcmp(key,"AH_Color2",true)==0) { Biclist[playerid][BColor2]=strval(ini_GetValue(Data)); }
}
}
   fclose(BicFile);
   if(Biclist[playerid][BTyp]!=-1)
   {
Biclist[playerid][BCarid] +=1;
       Biclist[playerid][BCarid]=CreateTunedBic(playerid);

//SetVehicleNumberPlate(Biclist[playerid][BCarid], otext);
}

}
/*return 1;*/
}
Poslednja Izmena: Decembar 29, 2011, 00:23:01 PRE PODNE od Talavander
Kada muškarac priča ženi bezobrazne stvari, to je seksualno uznemiravanje…
A kada žena to radi muškarcu to je 2 eura+PDV po minuti. :D

Mr.Gagi

warning 219: local variable "playername" shadows a variable at a preceding level - znaci da je vec jednom definisano i da ne treba opet ili promeni to playername u nesto drugo i u komandi sredis
error 017: undefined symbol "UcitajBic" - gde si stavio taj stock. Stavi ga na kraj moda
error 017: undefined symbol "Biclist" - fali ti enum za BicList primer:
enum list
{
BTyp,
BRotation,
.
.
.
.
.
//tu ide to ostalo
};
new Biclist[MAX_PlAYERS][list];