Quote:
Originally Posted by ApolloScripter
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).