Tag Mismatch - ** HELPERS GET +REP **
#1

Hi, I'm having troubles with compiling a gamemode. I'm pretty new at this. I tried adding authorities with dini and stuff and well:
I got a mismatch on this line:

Код:
if(PlayerInfo[playerid][ranklvl] == 2 && PlayerInfo[playerid][authority_weplic] != 1) return SendClientError(playerid, CANT_USE_CMD);
Here are some ohter parts related to this system:
Код:
dUserSetINT(PlayerName(playerid)).("authority_weplic",PlayerInfo[playerid][authority_weplic]);
Код:
PlayerInfo[playerid][authority_weplic] = dUserINT(PlayerName(playerid)).("authority_weplic");
Код:
//=========[Authorities]
new

	authority_cartow,
	authority_weplic,
	authority_ann,
	authority_invite,
	authority_bdeploy,
	authority_radio;
Ty for the helpers <3
Reply
#2

Mind showing your PlayerInfo and SendClientError code?

Try compiling the code like this, then tell me what error you get.

pawn Код:
if(PlayerInfo[playerid][ranklvl] == 2 && PlayerInfo[playerid][authority_weplic] != 1)
{
     SendClientError(playerid, CANT_USE_CMD);
     return 1;
}
Reply
#3

Quote:
Originally Posted by Death1300
Посмотреть сообщение
Mind showing your PlayerInfo and SendClientError code?

Try compiling the code like this, then tell me what error you get.

pawn Код:
if(PlayerInfo[playerid][ranklvl] == 2 && PlayerInfo[playerid][authority_weplic] != 1)
{
     SendClientError(playerid, CANT_USE_CMD);
     return 1;
}
Just spotted the problem, thanks +REP'ed
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)