#1

Line 2522
Quote:

if(sInfo[MedikuDarbas][playerid] != 0) return SendClientMessage(playerid,RAUDONA,"[SERVER]Tu jau dirbi čia!");

Error:
Quote:

(2522) : warning 213: tag mismatch

Reply
#2

This is not specifically an error, but rather a warning, in this case is because your code is disorganized, try to put it like this:

pawn Code:
if(sInfo[MedikuDarbas][playerid] != 0)
    return SendClientMessage(playerid,RAUDONA,"[SERVER]Tu jau dirbi čia!");
And check if the variable type declares is specific to the player, this warning can be caused by a statement that does not agree with the use of the variable, send-me the variable to take a look
Reply
#3

Quote:
Originally Posted by ApolloScripter
View Post
This is not specifically an error, but rather a warning, in this case is because your code is disorganized, try to put it like this:

pawn Code:
if(sInfo[MedikuDarbas][playerid] != 0)
    return SendClientMessage(playerid,RAUDONA,"[SERVER]Tu jau dirbi čia!");
If the problem persists, let me know.
And how would that produce a tag mismatch warning?
That code is organized fine, you don't need to put the return [...] in a seperate line.


Anyway, shouldn't it be this way:

PHP Code:
sInfo[playerid][MedikuDarbas
If sInfo uses an enum, you probably declared it similar to this:

PHP Code:
new sInfo[MAX_PLAYERS][E_PLAYER_INFO]; 
where E_PLAYER_INFO is your enum. In this case playerid must be the first index.


Another possibility would be if the function in which this code is has a tag, like Float. In that case you shouldn't return an int value (the return value of SendClientMessage is an integer).
Reply
#4

Nope Apollo it dont work
Reply
#5

Fixed thanks NaS
Reply
#6

Read NaS's explanation, try to understand it and use this code:

pawn Code:
if(sInfo[playerid][MedikuDarbas] != 0)
    return SendClientMessage(playerid,RAUDONA,"[SERVER]Tu jau dirbi čia!");
EDIT: Didn't see your double post.
Reply
#7

Quote:
Originally Posted by TheToretto
View Post
Read NaS's explanation, try to understand it and use this code:

pawn Code:
if(sInfo[playerid][MedikuDarbas] != 0)
    return SendClientMessage(playerid,RAUDONA,"[SERVER]Tu jau dirbi čia!");
EDIT: Didn't see your double post.
Yeah I know i mixed playerid and MedikuDarbas

I do
Quote:

sInfo[MedikuDarbas][playerid]

Must be
Quote:

sInfo[playerid][MedikuDarbas]

This is my 100's post
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)