[Pomoc] 4 erora oko Intra

Započeo CrtNN, Decembar 29, 2011, 18:59:42 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: moj mod od 0
Detaljan opis problema: Pravio sam Intro al imam 4 erora koja nmg da resim 

C:\Users\GaLLe\Desktop\CrtNN's RolePlay [Mod od 0]\gamemodes\modod0.pwn(230) : warning 215: expression has no effect
C:\Users\GaLLe\Desktop\CrtNN's RolePlay [Mod od 0]\gamemodes\modod0.pwn(230) : error 001: expected token: ";", but found "]"
C:\Users\GaLLe\Desktop\CrtNN's RolePlay [Mod od 0]\gamemodes\modod0.pwn(230) : error 029: invalid expression, assumed zero
C:\Users\GaLLe\Desktop\CrtNN's RolePlay [Mod od 0]\gamemodes\modod0.pwn(230) : fatal error 107: too many error messages on one line


Dio skripte: eo ta linija sto izbacuje erore  Intro[playerid] = TextDrawCreate(0 ,1 , "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~");

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

Mr.Gagi

Proveri da ti u prethodnoj liniji ne fali ; ili kako ti je ovo Intro[playerid] definisano?

Citat: Mr.Gagi poslato Decembar 29, 2011, 19:20:19 POSLE PODNE
Proveri da ti u prethodnoj liniji ne fali ; ili kako ti je ovo Intro[playerid] definisano?

kao new Text:Intro

Mr.Gagi

E to treba ovako:
new Text:Intro[MAX_PLAYERS];




Citat: [TG]$--L84S--$ poslato Decembar 29, 2011, 19:59:40 POSLE PODNE
Gdje si stavio Textdraw ??

L84S pratio sam sve po tvom tutorialu sve sam lepo stavio al opet mi erori iskacu isti :S

Citat: CrtNN poslato Decembar 30, 2011, 11:34:24 PRE PODNE
Citat: [TG]$--L84S--$ poslato Decembar 29, 2011, 19:59:40 POSLE PODNE
Gdje si stavio Textdraw ??

L84S pratio sam sve po tvom tutorialu sve sam lepo stavio al opet mi erori iskacu isti :S
Pa nisi nesto dobro stavio..
Daj stavi par redova iznad i par redova ispod toga di ti je eror i zaljepi nam tu pa cu ti rijesit...

erori : C:\Users\GaLLe\Desktop\CrtNN's RolePlay [Mod od 0]\gamemodes\modod0.pwn(232) : error 017: undefined symbol "Intro"
C:\Users\GaLLe\Desktop\CrtNN's RolePlay [Mod od 0]\gamemodes\modod0.pwn(232) : warning 215: expression has no effect
C:\Users\GaLLe\Desktop\CrtNN's RolePlay [Mod od 0]\gamemodes\modod0.pwn(232) : error 001: expected token: ";", but found "]"
C:\Users\GaLLe\Desktop\CrtNN's RolePlay [Mod od 0]\gamemodes\modod0.pwn(232) : error 029: invalid expression, assumed zero
C:\Users\GaLLe\Desktop\CrtNN's RolePlay [Mod od 0]\gamemodes\modod0.pwn(232) : fatal error 107: too many error messages on one line


evo i linije te

SetPVarInt(playerid,"Ulogovan",0);
SetPVarInt(playerid,"TokIntra",1);
ova zeza 232 ----> Intro[playerid] = TextDrawCreate(0 ,1 , "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~");
   TextDrawFont(Intro[playerid] , 0);
   TextDrawLetterSize(Intro[playerid] , 0.4, 2);
   TextDrawColor(Intro[playerid] , 0xff0000FF);
   TextDrawSetOutline(Intro[playerid] , 0);
   TextDrawSetProportional(Intro[playerid] , 0);
   TextDrawSetShadow(Intro[playerid] , 1);
   TextDrawUseBox(Intro[playerid] , 1);
   TextDrawBoxColor(Intro[playerid] , 0x00FFFFFF);

Mr.Gagi

Sve errore ti izbacuje jer Intro nije definisan
new Text:Intro[MAX_PLAYERS];
To stavis gore kod ostalih new.

Citat: Mr.Gagi poslato Decembar 30, 2011, 16:19:20 POSLE PODNE
Sve errore ti izbacuje jer Intro nije definisan
new Text:Intro[MAX_PLAYERS];
To stavis gore kod ostalih new.

ma definisao sam brate :S i to bas tako new text:Intro[MAX_PLAYERS]; :S