Jump to content

Question

Posted

F:\Gaby\Jocuri\xvcc\Replay\gamemodes\saints.pwn(18357) : error 028: invalid subscript (not an array or too many subscripts): "gNewb"
F:\Gaby\Jocuri\xvcc\Replay\gamemodes\saints.pwn(18357) : warning 215: expression has no effect
F:\Gaby\Jocuri\xvcc\Replay\gamemodes\saints.pwn(18357) : error 001: expected token: ";", but found "]"
F:\Gaby\Jocuri\xvcc\Replay\gamemodes\saints.pwn(18357) : error 029: invalid expression, assumed zero
F:\Gaby\Jocuri\xvcc\Replay\gamemodes\saints.pwn(18357) : 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.

Linia:

[pawn]18357: if(gNewb[playerid] == 1)

{

    PlayerInfo[playerid][pNewbTimer] = 12;

    if (PlayerInfo[playerid][pAdmin] == 1)

format(string, sizeof(string), "Admin Level 1: %s[%d]: %s", sendername, playerid ,result);

if (PlayerInfo[playerid][pAdmin] == 2)[/pawn]

3 answers to this question

Recommended Posts

Posted

Arata-ne cum ai definit gNewb,

new gNewb[ MAX_PLAYERS ]; //sau cum o fi

PS: Postezi de atata luni in Discutii Scripting topicuri noi, tu nu mai avansezi o data ?

Posted

asa am definito [pawn]new gNewb;[/pawn]

si am doar 1luna si 1 sapt de cand m am apucat de scriptat :))

La tine un new ca ala rezolva tot ... daca nu e folosit nicaieri, scoate new gNewb; si ala unde e folosit,

if( gNewb[ playerid ] == 1 ) //stergi

{ // stergi

      Chestii // nu stergi

} // stergi

Pare ca a trecut mai mult.


Citeste regulamentul inainte sa mai postezi daca nu vrei warn, si vezi cum se posteaza o problema la discutii scripting .. cu numele nu cu "ajutor" "salvati-ma" "erori" "probleme"

btw erori se scrie doar cu un i

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.