array problem
#1

pawn Код:
C:\Documents and Settings\Karim\My Documents\Grand Theft Auto San Andreas\SA-MP SERVER(CNR)\gamemodes\COPSAR~1.pwn(4569) : warning 213: tag mismatch
on this line ( the strcmp one)
pawn Код:
for(new antipnames; antipnames < sizeof HighPingNames; antipnames++)
            if(!strcmp(Playername(i), HighPingNames[antipnames], true) == 0)
            {
pawn Код:
new HighPingNames[][MAX_PLAYER_NAME] = {
    "dogbox",
    "Catdog"
};
Reply
#2

You defined the array as array[][] but you use it as array[].. the other [] is missing
Reply
#3

nvm fixed (8char)
Reply
#4

Now.. you just defined it as array[][][] but are still using it as array[]...

You made this: HighPingNames[][].. and you are using it as HighPingNames[] on this line:
pawn Код:
if(!strcmp(Playername(i), HighPingNames[antipnames], true) == 0)
EDIT:

I actually misread your problem. Obviously you are declaring an array.. with a size each .. nevermind..Lemme read up the code again o.o
Reply
#5

Can you show Playername function?
Reply
#6

nvm fixed.

pawn Код:
//if(strcmp(Playername(i), HighPingNames[antipnames], true))
            if(!strmatch(Playername(i), HighPingNames[antipnames]))
            {
those to fixed it. and

pawn Код:
new HighPingNames[][]= {
    "dogbox",
    "Catdog"
};
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)