SA-MP Forums Archive
please help - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: please help (/showthread.php?tid=264870)



please help - MA_proking - 28.06.2011

Код:
C:\Documents and Settings\Prabhat\Desktop\World Stunting         V1.3.5\filterscripts\race.pwn(386) : error 017: undefined symbol "IsPlayerLuxAdm"
C:\Documents and Settings\Prabhat\Desktop\World Stunting         V1.3.5\filterscripts\race.pwn(396) : error 017: undefined symbol "IsPlayerLuxAdm"
C:\Documents and Settings\Prabhat\Desktop\World Stunting         V1.3.5\filterscripts\race.pwn(407) : error 017: undefined symbol "IsPlayerLuxAdm"
C:\Documents and Settings\Prabhat\Desktop\World Stunting         V1.3.5\filterscripts\race.pwn(424) : error 017: undefined symbol "IsPlayerLuxAdm"
C:\Documents and Settings\Prabhat\Desktop\World Stunting         V1.3.5\filterscripts\race.pwn(435) : error 017: undefined symbol "IsPlayerLuxAdm"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
I used these headers
Код:
#include <ladmin>
#include <a_samp>
#include <dini>
#include <zcmd>
Showing these errors how to resolve


Re: please help - Wesley221 - 28.06.2011

Quote:
Originally Posted by LethaL
Посмотреть сообщение
Using Player Admin Level in another filterscript or gamemode
1. Put the file IsPlayerLAdmin.inc in your includes folder
2. add the following line to the top of your gamemode
pawn Код:
#include <IsPlayerLAdmin>
3. Now you can use:
pawn Код:
if (IsPlayerLAdmin(playerid)) ....
and
pawn Код:
if (IsPlayerAdminLevel(playerid, 4)) ... // where 4 is the level. this can be any level you want
There you go


Re: please help - MA_proking - 28.06.2011

I m using LUX admin !!! I think this is for Ladmin


Re: please help - Wesley221 - 28.06.2011

Quote:
Originally Posted by MA_proking
Посмотреть сообщение
I used these headers
Код:
#include <ladmin>
#include <a_samp>
#include <dini>
#include <zcmd>
Showing these errors how to resolve
Quote:
Originally Posted by MA_proking
Посмотреть сообщение
I m using LUX admin !!! I think this is for Ladmin
Thats why i thought youre using Ladmin
pawn Код:
IsPlayerLuxAdminLevel(playerid, level);
This is the right function


Re: please help - MA_proking - 28.06.2011

Код:
	if (!IsPlayerLuxAdm(playerid, 3)) return SendClientMessage(playerid, RED, "<!> You are not an administrator!");
Yes using this but its not working


Re: please help - Wesley221 - 28.06.2011

The right function:
pawn Код:
IsPlayerLuxAdminLevel(playerid, level);
Your function (wrong one):
pawn Код:
IsPlayerLuxAdm(playerid, level)



Re: please help - MA_proking - 28.06.2011

Thanks it works