Help me in - If(IsPlayerLuxAdm(playerid, 4)) - 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: Help me in - If(IsPlayerLuxAdm(playerid, 4)) (
/showthread.php?tid=520533)
Help me in - If(IsPlayerLuxAdm(playerid, 4)) -
DarK_FeneR - 19.06.2014
I'm using Lux Admin, but it give a error and a warning... Can you help me please?
Includes
Код:
#include <a_samp>
#include <core>
#include <float>
#include <Dini>
#include <streamer>
#include <ladmin>
code command
Код:
if(strcmp(cmdtext, "/bsg 1", true) == 0)
{
if(IsPlayerLuxAdm(playerid, 4))
{
if(Gate1_O == 0)
{
Gate1_O = 1;
MoveDynamicObject (Gate1, -2723.8999023438, 2348.8000488281, 74.599998474121, 1); // Back Lift (down position)
SendClientMessage(playerid, COLOR_VERDE, "[BASE]Hai aperto il gate principale");
}
else
{
Gate1_O = 0;
MoveDynamicObject (Gate1, -2725.5000000, 2357.6006000, 74.4000000, 1); // Back Lift (down position)
SendClientMessage(playerid, COLOR_ROSSO, "[BASE]Hai chiuso il gate principale");
}
}
else
{
SendClientMessage(playerid, COLOR_ROSSO, "[BASE]Devi essere admin LVL 4 per questo comando");
}
return 1;
}
errors
Код:
C:\Users\DarK_FeneR\Desktop\M3 SAMP\gamemodes\M3_1.9.pwn(2245) : error 017: undefined symbol "IsPlayerLuxAdm"
C:\Users\DarK_FeneR\Desktop\M3 SAMP\gamemodes\M3_1.9.pwn(12756) : warning 203: symbol is never used: "ret_memcpy"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Re: Help me in - If(IsPlayerLuxAdm(playerid, 4)) -
Lynn - 19.06.2014
You're not defining IsPlayerLuxAdm anywhere in your script.
For the looks of it I'd say IsPlayerLuxAdm is a Stock that you don't have.
For the top of your script;
#pragma unused ret_memcpy
Re: Help me in - If(IsPlayerLuxAdm(playerid, 4)) -
DarK_FeneR - 19.06.2014
How to define IsPlayerLuxAdm
it wasn't in the ladmin include?