LuxAdmin is weird... O.o -
HardstylerNiko - 14.08.2010
Okay, guys, it's me again with another problems xD
1.:
LuxAdmin isn't saving the stats. I tried already to use another LuxAdmin, but it's still there >.<
I have no idea, what do i have to post for a solution, so i use this: xD
Files in "Servername"/pawno/include:
a_npc,a_objects,a_players,a_samp,a_sampdb,a_vehicl es,core,datagram,file,float,dutils,ladmin,ldudb,Di ni,lfuncs,
streamer,string,time,dudb,
LuxAdmin:
Код:
//==============================================================================
// Includes
//==============================================================================
#include <a_samp>
#include <ldudb>
#include <lfuncs>
#include <Dini>
#include <dutils>
And yes:
Код:
#define SaveScore true // Enable/Disable to save Player's Score
xD
2.:
There is an thing, i really like:
Код:
#define ADM_InMSG false // Put 'admin' in all messages sent by administrators (Ex: David(Admin): Welcome...)
But if i edit to "true", players without Adminlevel can't chat >.<
Why is that?
Код:
//==============================================================================
// Send Admin in front of name
//==============================================================================
#if ADM_InMSG == true
if (AccInfo[playerid][Hide] == 0)
{
if(AccInfo[playerid][Level] > 0)
{
new str3[256];
format(str3, 256, "(Admin): %s", text);
for(new gz=0;gz<200;gz++)
if(IsPlayerConnected(gz))
SendPlayerMessageToPlayer(gz, playerid, str3);
else SendPlayerMessageToPlayer(gz, playerid, text);
}
return 0;
}
#endif
I didn't edit anything... please help >.<
Re: LuxAdmin is weird... O.o -
Wiliam - 14.08.2010
its
}
return 1;
{
#endif
i got 1 and it works for me are you sure you didnt edit
Re: LuxAdmin is weird... O.o -
HardstylerNiko - 14.08.2010
i am xD
but thanks, lemme test it
Re: LuxAdmin is weird... O.o -
HardstylerNiko - 14.08.2010
LOL...
everything is now fucked up xD
Код:
//==============================================================================
// Send Admin in front of name
//==============================================================================
#if ADM_InMSG == true
if (AccInfo[playerid][Hide] == 0)
{
if(AccInfo[playerid][Level] > 0)
{
new str3[256];
format(str3, 256, "(Admin): %s", text);
for(new gz=0;gz<200;gz++)
if(IsPlayerConnected(gz))
SendPlayerMessageToPlayer(gz, playerid, str3);
else SendPlayerMessageToPlayer(gz, playerid, text);
}
return 1;
{
#endif
Код:
C:\Users\Niko\Desktop\NEW SERVER\filterscripts\LuxAdmin.pwn(482) : error 017: undefined symbol "UpdateConfig"
C:\Users\Niko\Desktop\NEW SERVER\filterscripts\LuxAdmin.pwn(483) : error 017: undefined symbol "ReadTextDraws"
C:\Users\Niko\Desktop\NEW SERVER\filterscripts\LuxAdmin.pwn(502) : error 017: undefined symbol "ShowConfigInConsole"
C:\Users\Niko\Desktop\NEW SERVER\filterscripts\LuxAdmin.pwn(529) : error 004: function "SaveTeleport" is not implemented
C:\Users\Niko\Desktop\NEW SERVER\filterscripts\LuxAdmin.pwn(631) : error 004: function "SaveIn" is not implemented
C:\Users\Niko\Desktop\NEW SERVER\filterscripts\LuxAdmin.pwn(646) : error 004: function "SaveIn" is not implemented
C:\Users\Niko\Desktop\NEW SERVER\filterscripts\LuxAdmin.pwn(666) : error 004: function "SaveIn" is not implemented
C:\Users\Niko\Desktop\NEW SERVER\filterscripts\LuxAdmin.pwn(709) : error 017: undefined symbol "LoginPlayer"
C:\Users\Niko\Desktop\NEW SERVER\filterscripts\LuxAdmin.pwn(784) : error 004: function "SaveIn" is not implemented
C:\Users\Niko\Desktop\NEW SERVER\filterscripts\LuxAdmin.pwn(802) : error 017: undefined symbol "SavePlayerStats"
C:\Users\Niko\Desktop\NEW SERVER\filterscripts\LuxAdmin.pwn(830) : error 004: function "EraseVeh" is not implemented
C:\Users\Niko\Desktop\NEW SERVER\filterscripts\LuxAdmin.pwn(836) : error 017: undefined symbol "AdvanceSpectate"
C:\Users\Niko\Desktop\NEW SERVER\filterscripts\LuxAdmin.pwn(1045) : error 017: undefined symbol "AdvanceSpectate"
C:\Users\Niko\Desktop\NEW SERVER\filterscripts\LuxAdmin.pwn(1062) : error 004: function "MessageToPlayerVIP" is not implemented
C:\Users\Niko\Desktop\NEW SERVER\filterscripts\LuxAdmin.pwn(1063) : error 004: function "SaveIn" is not implemented
C:\Users\Niko\Desktop\NEW SERVER\filterscripts\LuxAdmin.pwn(1073) : error 004: function "MessageToAdmins" is not implemented
C:\Users\Niko\Desktop\NEW SERVER\filterscripts\LuxAdmin.pwn(1075) : error 004: function "SaveIn" is not implemented
C:\Users\Niko\Desktop\NEW SERVER\filterscripts\LuxAdmin.pwn(1104) : error 004: function "SaveIn" is not implemented
C:\Users\Niko\Desktop\NEW SERVER\filterscripts\LuxAdmin.pwn(1122) : error 004: function "SaveIn" is not implemented
C:\Users\Niko\Desktop\NEW SERVER\filterscripts\LuxAdmin.pwn(1146) : warning 225: unreachable code
C:\Users\Niko\Desktop\NEW SERVER\filterscripts\LuxAdmin.pwn(1163) : error 017: undefined symbol "AdvertisementCheck"
C:\Users\Niko\Desktop\NEW SERVER\filterscripts\LuxAdmin.pwn(1176) : error 004: function "SaveIn" is not implemented
C:\Users\Niko\Desktop\NEW SERVER\filterscripts\LuxAdmin.pwn(1207) : warning 225: unreachable code
C:\Users\Niko\Desktop\NEW SERVER\filterscripts\LuxAdmin.pwn(1207) : warning 217: loose indentation
C:\Users\Niko\Desktop\NEW SERVER\filterscripts\LuxAdmin.pwn(1207) : error 029: invalid expression, assumed zero
C:\Users\Niko\Desktop\NEW SERVER\filterscripts\LuxAdmin.pwn(1207) : error 004: function "OnPlayerPrivmsg" is not implemented
C:\Users\Niko\Desktop\NEW SERVER\filterscripts\LuxAdmin.pwn(1217) : error 017: undefined symbol "recieverid"
C:\Users\Niko\Desktop\NEW SERVER\filterscripts\LuxAdmin.pwn(1223) : error 004: function "SaveIn" is not implemented
C:\Users\Niko\Desktop\NEW SERVER\filterscripts\LuxAdmin.pwn(1244) : error 004: function "SaveIn" is not implemented
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
26 Errors.
DUH... that's hard... any help, please? Also to the Stats save thing?
Re: LuxAdmin is weird... O.o -
rbN. - 14.08.2010
Try this:
OnFilterScriptInit:
pawn Код:
SetTimer("AutoUpdateBegin", 5000, 1);
Some where down:
pawn Код:
forward AutoUpdateBegin();
public AutoUpdateBegin()
{
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i))
{
if(AccInfo[i][LoggedIn] == 1)
{
if(AccInfo[i][LoggedIn] == 1)
SavePlayerStats(i);
}
}
}
return 1;
}
Re: LuxAdmin is weird... O.o -
Hiddos - 14.08.2010
Код:
//==============================================================================
// Send Admin in front of name
//==============================================================================
#if ADM_InMSG == true
if (AccInfo[playerid][Hide] == 0)
{
if(AccInfo[playerid][Level] > 0)
{
new str3[256];
format(str3, 256, "(Admin): %s", text);
for(new gz=0;gz<200;gz++)
if(IsPlayerConnected(gz))
SendPlayerMessageToPlayer(gz, playerid, str3);
else SendPlayerMessageToPlayer(gz, playerid, text);
}
return 1;
}
#endif
Bad admin scripts usually have people who have the most common problems.
Re: LuxAdmin is weird... O.o -
HardstylerNiko - 14.08.2010
it looks good, almost everything okay, but now a chat message looks like this:
As Admin:
(name): (Admin) test
(name): test
As Player:
(name): test2
>.<
And what about the problem, that the stats do not save? I really need it for my TDM server >.<
But thanks for that script
Re: LuxAdmin is weird... O.o -
HardstylerNiko - 15.08.2010
Anyone out there who can help me? >.<
Ps.: I found the "anti-save" Bug: LuxAdmin has to be the first Filterscript at server.cfg