[Pomoc]Errori

6. Jan. 2012. Zaključano
820
pregleda
14
postova
isk0
5
Underboss
6. Jan. 2012.
Skripta koju koristim: moja
Detaljan opis problema:  Ne mogu da rijesim ova cetiri errora nikako :S
Dio skripte:
Quote
C:\Documents and Settings\Ismail\Desktop\bot\SARAJEVO ROLEPLAY\gamemodes\sarpg.pwn(19399) : error 017: undefined symbol "rTime"
C:\Documents and Settings\Ismail\Desktop\bot\SARAJEVO ROLEPLAY\gamemodes\sarpg.pwn(19399) : warning 215: expression has no effect
C:\Documents and Settings\Ismail\Desktop\bot\SARAJEVO ROLEPLAY\gamemodes\sarpg.pwn(19399) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Ismail\Desktop\bot\SARAJEVO ROLEPLAY\gamemodes\sarpg.pwn(19399) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Ismail\Desktop\bot\SARAJEVO ROLEPLAY\gamemodes\sarpg.pwn(19399) : fatal error 107: too many error messages on one line

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

4 Errors.


Neke slike/video za lakse dobivanje pomoci(neobavezno):

Quote
if(rTime == 1) return SendClientMessage(playerid, COLOR_GRAD2, "Morate pricekati 2 minute do sljedeceg reporta!");

Ovo je linija errora
Talavander
4
Made Man
6. Jan. 2012.
nemaš definisan taj tajmer,

new rTime;

a za ove errore mislim da ti je greška u delu rpije toga...ili liniji prije linije 19339
isk0
5
Underboss
6. Jan. 2012.
aa kako da definisem taj tajmer?
troll3d
4
Made Man
6. Jan. 2012.
isk0 wrote on January 6, 2012, 6:08 pm:
aa kako da definisem taj tajmer?


Krivo si ga definirao Talavander

Ovako ga definiraj

new rTime;

I nemoj reći da je tvoja skripta kad ima preko 20k linija.
isk0
5
Underboss
7. Jan. 2012.
Rijesio sam ovo sada mi se pojavljuju novi errori :S
Quote
C:\Documents and Settings\Ismail\Desktop\bot\SARAJEVO ROLEPLAY\gamemodes\sarpg.pwn(19379) : warning 225: unreachable code
C:\Documents and Settings\Ismail\Desktop\bot\SARAJEVO ROLEPLAY\gamemodes\sarpg.pwn(1939😎 : warning 225: unreachable code
C:\Documents and Settings\Ismail\Desktop\bot\SARAJEVO ROLEPLAY\gamemodes\sarpg.pwn(1939😎 : error 001: expected token: "-string end-", but found "-identifier-"
C:\Documents and Settings\Ismail\Desktop\bot\SARAJEVO ROLEPLAY\gamemodes\sarpg.pwn(1939😎 : error 001: expected token: "-string end-", but found "-identifier-"
C:\Documents and Settings\Ismail\Desktop\bot\SARAJEVO ROLEPLAY\gamemodes\sarpg.pwn(1939😎 : warning 215: expression has no effect
C:\Documents and Settings\Ismail\Desktop\bot\SARAJEVO ROLEPLAY\gamemodes\sarpg.pwn(1939😎 : error 001: expected token: ";", but found "-integer value-"
C:\Documents and Settings\Ismail\Desktop\bot\SARAJEVO ROLEPLAY\gamemodes\sarpg.pwn(1939😎 : fatal error 107: too many error messages on one line

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

4 Errors.


Evo linije errora

Quote
new nTime;return SendClientMessage(playerid, COLOR_GRAD2, "Morate pricekati 2 minute!");
troll3d
4
Made Man
7. Jan. 2012.
Ma ne tu definirati varijablu  🙄

Sve isto kao prije samo negdje na vrhu skripte staviš new rTime;
isk0
5
Underboss
7. Jan. 2012.
Nisam bas shvatio gdje da postavim ovo rTime
troll3d
4
Made Man
7. Jan. 2012.
Na vrhu skripte gdje su ti ostale definicije varijabla sa "new"
isk0
5
Underboss
7. Jan. 2012.
Evo moja komanda pa reci sada gdje treba ubaciti 😄

Quote
   if(strcmp(cmd, "/novi", true) == 0)
{

if(IsPlayerConnected(playerid))
   {
    if(PlayerInfo < 3)
    {
GetPlayerName(playerid, sendername, sizeof(sendername));
               if(nTime == 1) return  SendClientMessage(playerid, COLOR_GRAD2, "Morate pricekati 2 minute!");
format(string, 256, "("COLOR_RED"Sarajevo Role3Play{FFFFFF}!) "COLOR_RED"%s {FFFFFF}je novi igrac i treba mu pomoc!",sendername);
ABroadCast(WHITE,string,1);
SendClientMessage(playerid, COLOR_YELLOW, "* Hvala na prijavi, Admini i GameMaster ce odgovoriti u najkracem roku!");
nTime = 1;
           SetTimerEx("Novi", 120000, false, "%d", playerid);
}
else
{
SendClientMessage(playerid, WHITE, "("COL_RED"Greska{FFFFFF}!) Samo igraci do levela "COL_RED"3!");
}
   }
   return 1;
}
troll3d
4
Made Man
7. Jan. 2012.
Napisao sam ti na vrhu skripte (MODA) , daj čitaj malo molim te više , nervirate me kada vam napišem riješenje i onda ne znate ni iskopirati to -.-
isk0
5
Underboss
7. Jan. 2012.
Kad to uradim pojave se novi errori :S

Quote
C:\Documents and Settings\Ismail\Desktop\bot\SARAJEVO ROLEPLAY\gamemodes\sarpg.pwn(19380) : warning 225: unreachable code
C:\Documents and Settings\Ismail\Desktop\bot\SARAJEVO ROLEPLAY\gamemodes\sarpg.pwn(19401) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Documents and Settings\Ismail\Desktop\bot\SARAJEVO ROLEPLAY\gamemodes\sarpg.pwn(19401) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Documents and Settings\Ismail\Desktop\bot\SARAJEVO ROLEPLAY\gamemodes\sarpg.pwn(19401) : warning 215: expression has no effect
C:\Documents and Settings\Ismail\Desktop\bot\SARAJEVO ROLEPLAY\gamemodes\sarpg.pwn(19401) : error 001: expected token: ";", but found "-integer value-"
C:\Documents and Settings\Ismail\Desktop\bot\SARAJEVO ROLEPLAY\gamemodes\sarpg.pwn(19401) : fatal error 107: too many error messages on one line

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

4 Errors.


Evo linija errora:

Quote
format(string, sizeof(string), "("COLOR_RED"Sarajevo Role3Play{FFFFFF}!) "COLOR_RED"%s {FFFFFF}je novi igrac i treba mu pomoc!",sendername);
troll3d
4
Made Man
7. Jan. 2012.
Loše si postavio html boje , definiraj boje ovako "{kodboje}Test tekst {kodboje}%s"
isk0
5
Underboss
7. Jan. 2012.
Imam jedan novi error :S

Quote
C:\Documents and Settings\Ismail\Desktop\bot\SARAJEVO ROLEPLAY\gamemodes\sarpg.pwn(19380) : warning 225: unreachable code
C:\Documents and Settings\Ismail\Desktop\bot\SARAJEVO ROLEPLAY\gamemodes\sarpg.pwn(37480) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

1 Error.


Evo linija:

Quote
  {
troll3d
4
Made Man
7. Jan. 2012.
U komandi označi liniju , jedan warning/error ti nije u komandi , jedan je i označi ga.

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha