Tag Mismatch? - 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? (
/showthread.php?tid=326917)
Tag Mismatch? -
ReneG - 19.03.2012
Before you jump to conclusions. I am aware of a lot of the scripting errors and what causes them, so I try not to post here regarding compiling errors, it's just that I have looked through this line for about 10 minutes and cannot figure out what in the world is wrong with it. It's like playing a damn game of I-Spy.
pawn Код:
CMD:goto(playerid,params[])
{
if(!IsPlayerAdmin(playerid) && pInfo[pAdmin][playerid] < 3) // Error Line
{
SendClientMessage(playerid,COLOR_LIGHTGRAY,"You are not authorised to use that command.");
return 1;
}
// Rest of code is uneeded.
Re: Tag Mismatch? -
Roel - 19.03.2012
Not sure but mostly it is not
pInfo[pAdmin][playerid]
but
pInfo[playerid][pAdmin]
Re: Tag Mismatch? -
ReneG - 19.03.2012
Quote:
Originally Posted by Roel
Not sure but mostly it is not
pInfo[pAdmin][playerid]
but
pInfo[playerid][pAdmin]
|
Oh my god. I'm so ashamed lol.
I knew it was something as simple as that.