[Pomoc]Errori

Započeo ♥ BMW ♥, Januar 06, 2012, 18:33:32 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim: moja
Detaljan opis problema:  Ne mogu da rijesim ova cetiri errora nikako :S
Dio skripte:
CitatC:\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):

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

Ovo je linija errora













Village's Roleplay USKORO...

Village's Roleplay USKORO...

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
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

aa kako da definisem taj tajmer?


Village's Roleplay USKORO...

Village's Roleplay USKORO...

Citat: isk0 poslato Januar 06, 2012, 19:08:39 POSLE PODNE
aa kako da definisem taj tajmer?


Krivo si ga definirao Talavander

Ovako ga definiraj

new rTime[MAX_PLAYERS];

I nemoj reći da je tvoja skripta kad ima preko 20k linija.
"I'm a loser and a user so I don't need no accuser" - Billie Joe Armstrong

Rijesio sam ovo sada mi se pojavljuju novi errori :S
CitatC:\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(19398) : warning 225: unreachable code
C:\Documents and Settings\Ismail\Desktop\bot\SARAJEVO ROLEPLAY\gamemodes\sarpg.pwn(19398) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Documents and Settings\Ismail\Desktop\bot\SARAJEVO ROLEPLAY\gamemodes\sarpg.pwn(19398) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Documents and Settings\Ismail\Desktop\bot\SARAJEVO ROLEPLAY\gamemodes\sarpg.pwn(19398) : warning 215: expression has no effect
C:\Documents and Settings\Ismail\Desktop\bot\SARAJEVO ROLEPLAY\gamemodes\sarpg.pwn(19398) : error 001: expected token: ";", but found "-integer value-"
C:\Documents and Settings\Ismail\Desktop\bot\SARAJEVO ROLEPLAY\gamemodes\sarpg.pwn(19398) : 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

Citatnew nTime[MAX_PLAYERS];return SendClientMessage(playerid, COLOR_GRAD2, "Morate pricekati 2 minute!");


Poslednja Izmena: Januar 07, 2012, 16:11:29 POSLE PODNE od isk0


Village's Roleplay USKORO...

Village's Roleplay USKORO...

Ma ne tu definirati varijablu  ::)

Sve isto kao prije samo negdje na vrhu skripte staviš new rTime[MAX_PLAYERS];
"I'm a loser and a user so I don't need no accuser" - Billie Joe Armstrong

Nisam bas shvatio gdje da postavim ovo rTime[MAX_PLAYERS]


Village's Roleplay USKORO...

Village's Roleplay USKORO...

Na vrhu skripte gdje su ti ostale definicije varijabla sa "new"
Poslednja Izmena: Januar 07, 2012, 16:30:24 POSLE PODNE od Get busy living or Get busy dying
"I'm a loser and a user so I don't need no accuser" - Billie Joe Armstrong

Evo moja komanda pa reci sada gdje treba ubaciti :D

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

      if(IsPlayerConnected(playerid))
       {
          if(PlayerInfo[playerid][pLevel] < 3)
          {
            GetPlayerName(playerid, sendername, sizeof(sendername));
                if(nTime[playerid] == 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[playerid] = 1;
               SetTimerEx("Novi", 120000, false, "%d", playerid);
          }
         else
         {
            SendClientMessage(playerid, WHITE, "("COL_RED"Greska{FFFFFF}!) Samo igraci do levela "COL_RED"3!");
         }
       }
       return 1;
   }


Poslednja Izmena: Januar 07, 2012, 16:33:41 POSLE PODNE od isk0


Village's Roleplay USKORO...

Village's Roleplay USKORO...

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 -.-
"I'm a loser and a user so I don't need no accuser" - Billie Joe Armstrong

Kad to uradim pojave se novi errori :S

CitatC:\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:

Citatformat(string, sizeof(string), "("COLOR_RED"Sarajevo Role3Play{FFFFFF}!) "COLOR_RED"%s {FFFFFF}je novi igrac i treba mu pomoc!",sendername);
Poslednja Izmena: Januar 07, 2012, 16:52:14 POSLE PODNE od isk0


Village's Roleplay USKORO...

Village's Roleplay USKORO...

Loše si postavio html boje , definiraj boje ovako "{kodboje}Test tekst {kodboje}%s"
"I'm a loser and a user so I don't need no accuser" - Billie Joe Armstrong

Imam jedan novi error :S

CitatC:\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:

Citat{


Village's Roleplay USKORO...

Village's Roleplay USKORO...

U komandi označi liniju , jedan warning/error ti nije u komandi , jedan je i označi ga.
"I'm a loser and a user so I don't need no accuser" - Billie Joe Armstrong