[Pomoc]26errora

Započeo gamer13915
12. Jan. 2013. Zaključano
427
pregleda
7
postova
gamer13915
3
Hustler
12. Jan. 2013.
Skripta koju koristim:svoj server od 0
Detaljan opis problema:Nesto sam mjenjao oko dialoga i poremetio nesto pa mi prikazuje ove errore
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(145) : error 079: inconsistent return types (array & non-array)
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(184) : error 017: undefined symbol "PlayerName"
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(186) : error 079: inconsistent return types (array & non-array)
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(192) : warning 217: loose indentation
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(192) : error 029: invalid expression, assumed zero
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(192) : error 004: function "OnPlayerEnterVehicle" is not implemented
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(195) : error 079: inconsistent return types (array & non-array)
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(19😎 : warning 225: unreachable code
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(19😎 : error 029: invalid expression, assumed zero
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(19😎 : error 004: function "OnPlayerExitVehicle" is not implemented
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(200) : error 079: inconsistent return types (array & non-array)
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(203) : warning 225: unreachable code
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(203) : error 029: invalid expression, assumed zero
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(203) : error 004: function "OnPlayerStateChange" is not implemented
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(205) : error 079: inconsistent return types (array & non-array)
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(20😎 : warning 225: unreachable code
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(20😎 : error 029: invalid expression, assumed zero
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(20😎 : error 004: function "OnPlayerEnterCheckpoint" is not implemented
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(210) : error 079: inconsistent return types (array & non-array)
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(213) : warning 225: unreachable code
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(213) : error 029: invalid expression, assumed zero
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(213) : error 004: function "OnPlayerLeaveCheckpoint" is not implemented
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(215) : error 079: inconsistent return types (array & non-array)
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(21😎 : warning 225: unreachable code
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(21😎 : error 029: invalid expression, assumed zero
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(21😎 : error 004: function "OnPlayerEnterRaceCheckpoint" is not implemented
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(220) : error 079: inconsistent return types (array & non-array)
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(223) : warning 225: unreachable code
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(223) : error 029: invalid expression, assumed zero
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(223) : error 004: function "OnPlayerLeaveRaceCheckpoint" is not implemented
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(225) : error 079: inconsistent return types (array & non-array)
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(22😎 : warning 225: unreachable code
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(22😎 : error 029: invalid expression, assumed zero
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(22😎 : error 004: function "OnRconCommand" is not implemented
Dio skripte:
ovo je 145 linija-----> return 1;
}
if (strcmp("/teleport2", cmdtext, true, 10 ) == 0)
{
SetPlayerPos(playerid, 1674.2566,-1401.9370,84.6563);
SetPlayerInterior(playerid,0);
SendClientMessage(playerid, COLOR_YELLOW, "You have been teleported to building");
}
if (strcmp("/teleport3", cmdtext, true, 10 ) == 0)
{
SetPlayerPos(playerid, 2486.6064,-1668.1057,14.4045);
SetPlayerInterior(playerid,0);
SendClientMessage(playerid, COLOR_YELLOW, "You have been teleported to building");
}
if (strcmp("/p", cmdtext, true, 10 ) == 0)
{
GivePlayerWeapon(playerid,46, 999);
}
if(strcmp(cmdtext,"/otvori",true)==0)
{
MoveObject(gate, 267.7998046875, -1331.099609375, 52.299999237061, 10);
SendClientMessage(playerid, COLOR_YELLOW, "Vrata se otvaraju.");
SetTimer("gateTimer", 900, 0);
}
if(strcmp(cmdtext, "/fix", true) == 0)
{
RepairVehicle(GetPlayerVehicleID(playerid));
{
if(strcmp(cmdtext,"/stats",true)==0)
{
new string;
new fractname;
switch(GetPVarInt(playerid,"Fraction"))
{
case 0:{fractname="No";}
case 1:{fractname="Fractname 1";}
case 2:{fractname="Fractname 2";}
case 3:{fractname="Fractname 3";}
}
format(string,sizeof(string),"[Name: %s][Level: %i] [Adminlevel: %i] [Fraction: %s]",PlayerName(playerid),GetPlayerScore(playerid),GetPVarInt(playerid,"Adminlevel"),fractname);
SendClientMessage(playerid,NARANÄŒASTA,string);
return 1;
}


public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{

return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}

228linija------->public OnRconCommand(cmd[])
Neke slike/video za lakse dobivanje pomoci(neobavezno):
Deleted User
Obrisan korisnik
12. Jan. 2013.
Fali ti zagrada negdje
gamer13915
3
Hustler
12. Jan. 2013.
sad  mi izbacuje ove errore G:\Gabriel\samp03e_svr_R2_win32\pawno\include\dini.inc(239) : warning 219: local variable "string" shadows a variable at a preceding level
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(89) : warning 219: local variable "string" shadows a variable at a preceding level
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(14😎 : error 010: invalid function or declaration
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(154) : error 010: invalid function or declaration
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(160) : error 010: invalid function or declaration
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(164) : error 010: invalid function or declaration
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(170) : error 010: invalid function or declaration
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(174) : error 010: invalid function or declaration
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(17😎 : error 010: invalid function or declaration
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(180) : error 010: invalid function or declaration
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(181) : error 010: invalid function or declaration
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(182) : error 010: invalid function or declaration
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(183) : error 010: invalid function or declaration
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(187) : error 010: invalid function or declaration
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(519) : warning 203: symbol is never used: "fractname"
G:\Gabriel\samp03e_svr_R2_win32\gamemodes\TEST2.pwn(519) : warning 203: symbol is never used: "string"
tbedy
4
Shot Caller
12. Jan. 2013.
daj linije erora. .. i molim te koristi .. code - /code
Blaeks_Biofor
5
Forum Don
12. Jan. 2013.
na svakoj komandi ti fali return, nijedna od njih nije ispravna
gamer13915
3
Hustler
12. Jan. 2013.
89---->new string;
148--->if(strcmp(cmdtext,"/teleport2",true,10)==0)
154--->if(strcmp(cmdtext,"/teleport3",true,10)==0)
160---> if(strcmp(cmdtext,"/p",true,10)==0)
164--->if(strcmp(cmdtext,"/otvori",true)==0)
170--->if(strcmp(cmdtext,"/fix",true)== 0)
174--->if(strcmp(cmdtext,"/stats",true)==0)
178--->switch(GetPVarInt(playerid,"Fraction"))
180--->case 0:{fractname="No";}
181--->case 1:{fractname="Fractname 1";}
182---> case 2:{fractname="Fractname 2";}
183---> case 3:{fractname="Fractname 3";}
188--->return 1;
linija 520 ne postoji,a na liniji 239 nema ničega

jel mi možete ove errore riješiti?
hvala  Å¡to mi pomažete
gamer13915
3
Hustler
18. Jan. 2013.
oprostite što nisam rekao prije, možete lock rješio sam

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha