Tag Mismatch - ** HELPERS GET +REP ** - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Tag Mismatch - ** HELPERS GET +REP ** (
/showthread.php?tid=553199)
Tag Mismatch - ** HELPERS GET +REP ** -
Amit1998 - 28.12.2014
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
Re: Tag Mismatch - ** HELPERS GET +REP ** -
Sledgehammer - 28.12.2014
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;
}
Re: Tag Mismatch - ** HELPERS GET +REP ** -
Amit1998 - 28.12.2014
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