Error
#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


Messages In This Thread
Error - by Heress - 02.11.2018, 14:00
Re: Error - by ApolloScripter - 02.11.2018, 14:07
Re: Error - by NaS - 02.11.2018, 14:07
Re: Error - by Heress - 02.11.2018, 14:11
Re: Error - by Heress - 02.11.2018, 14:13
Re: Error - by TheToretto - 02.11.2018, 14:14
Re: Error - by Heress - 02.11.2018, 14:16

Forum Jump:


Users browsing this thread: 1 Guest(s)