SA-MP Forums Archive
Faction Help [4 Errors] - 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: Faction Help [4 Errors] (/showthread.php?tid=410767)



Faction Help [4 Errors] - bathushan - 26.01.2013

Hi,
Today i Try to Add a Faction into My GM. i See a Tut From Here.

I Did what they said. and Try to Compie There i Got this Errors.

Quote:

C:\Users\N.Bathushan Raj\Desktop\MY-RP\gamemodes\U1.pwn(859) : error 017: undefined symbol "AdminVariable"
C:\Users\N.Bathushan Raj\Desktop\MY-RP\gamemodes\U1.pwn(859) : warning 215: expression has no effect
C:\Users\N.Bathushan Raj\Desktop\MY-RP\gamemodes\U1.pwn(859) : error 001: expected token: ";", but found "]"
C:\Users\N.Bathushan Raj\Desktop\MY-RP\gamemodes\U1.pwn(859) : error 029: invalid expression, assumed zero
C:\Users\N.Bathushan Raj\Desktop\MY-RP\gamemodes\U1.pwn(859) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.
My 859's Line is
PHP код:
      if(AdminVariable[playerid] != 6) return SendClientMessage(playerid, -1"You are not an admin"); 
Please Help me!


Re: Faction Help [4 Errors] - hellfirehound - 26.01.2013

Deleted


Re: Faction Help [4 Errors] - bathushan - 26.01.2013

Quote:
Originally Posted by hellfirehound
Посмотреть сообщение
Hi, im sure the correct variable is:

if(PlayerInfo[playerid][pAdmin] != 6) return SendClientMessage(playerid, -1, "You are not an admin");

Replace [pAdmin] with whatever variable is used to define that players admin level
Okey!
I Did And i Got Again 4 Errors.

Quote:

C:\Users\N.Bathushan Raj\Desktop\MY-RP\gamemodes\U1.pwn(869) : warning 215: expression has no effect
C:\Users\N.Bathushan Raj\Desktop\MY-RP\gamemodes\U1.pwn(870) : warning 215: expression has no effect
C:\Users\N.Bathushan Raj\Desktop\MY-RP\gamemodes\U1.pwn(880) : error 017: undefined symbol "AdminVariable"
C:\Users\N.Bathushan Raj\Desktop\MY-RP\gamemodes\U1.pwn(880) : warning 215: expression has no effect
C:\Users\N.Bathushan Raj\Desktop\MY-RP\gamemodes\U1.pwn(880) : error 001: expected token: ";", but found "]"
C:\Users\N.Bathushan Raj\Desktop\MY-RP\gamemodes\U1.pwn(880) : error 029: invalid expression, assumed zero
C:\Users\N.Bathushan Raj\Desktop\MY-RP\gamemodes\U1.pwn(880) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

Line 869
PHP код:
        pData[playerid][Faction] == factionid
Line 870
PHP код:
        pData[playerid][Rank] == 6
Line 880
PHP код:
    if(AdminVariable[playerid] != && pData[playerid][Rank] != 6) return SendClientMessage(playerid, -1,"You are not a high enough admin or you aren't the leader!"); 
Help