New Small Admin Script.
#1

hi I'm Toni,
I am creating a free roam script, hopefully be done soon, and I'm have problems with LuxAdmin (ldudb.inc) won't work...line 44: MAX_STRING shit... But Oh well.
I'm trying to fix this 1 error i have, but i have no clue, since I'm new to scripting i have trouble from time to time.
This is the Error Msg:
C:\Users\Anthony Nam Tang\Desktop\Server(s)\Freeroam\gamemodes\freeroam .pwn(55) : warning 202: number of arguments does not match definition
C:\Users\Anthony Nam Tang\Desktop\Server(s)\Freeroam\gamemodes\freeroam .pwn(187) : error 029: invalid expression, assumed zero
C:\Users\Anthony Nam Tang\Desktop\Server(s)\Freeroam\gamemodes\freeroam .pwn(217) : error 030: compound statement not closed at the end of file (started at line 111)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The Compound statement not closed at the end of file i can fix easily, its just "C:\Users\Anthony Nam Tang\Desktop\Server(s)\Freeroam\gamemodes\freeroam .pwn(187) : error 029: invalid expression, assumed zero" problem i have.
this is the small 3 level admin script i was gonna make:
Код:
//==============================================================================
//============================Admin Section=====================================
//==============================================================================
	if(strcmp("/ah", cmdtext, true) == 0 || strcmp("/ahelp", cmdtext, true) == 0)
	{
	  if(IsPlayerConnected(playerid,))
	  {
	    if(PlayerInfo[playerid][pAdmin] > 0)
	    {
	      if(PlayerInfo[playerid][pAdmin] >= 1)
	      {
	        SendClientMessage(playerid, COLOR_YELLOW, "==================Level 1======================");
	        SendClientMessage(playerid, COLOR_YELLOW, "/kick - /jail [id] [time] - /unjail - /freeze - /unfreeze");
	        SendClientMessage(playerid, COLOR_YELLOW, "/mute - /unmute - /spectate -/spectateoff");
	        SendClientMessage(playerid, COLOR_YELLOW, "================================================");
				}
				if(PlayerInfo[playerid][pAdmin] >= 2)
				{
				  SendClientMessage(playerid, COLOR_YELLOW, "==================Level 2=======================");
				  SendClientMessage(playerid, COLOR_YELLOW, "/ban - /ma - /nma (no more admin) - /pkill");
					SendClientMessage(playerid, COLOR_YELLOW, "note: /makeadmin can only make level 1 admins.");
					SendClientMessage(playerid, COLOR_YELLOW, "================================================");
				}
	            if(PlayerInfo[playerid][pAdmin] >= 3)
				{
				  SendClientMessage(playerid, COLOR_YELLOW, "==================Level 3=======================");
				  SendClientMessage(playerid, COLOR_YELLOW, "/sg [gravity] - /maa - /maaa - /nuke - /airstrike - /gmx");
				  SendClientMessage(playerid, COLOR_YELLOW, "Note: /gmx will restart Server, Use for updates only.");
				  SendClientMessage(playerid, COLOR_YELLOW, "================================================");
				}
			}
		}
		return 1;
	}
Apparently, if(IsPlayerConnected(playerid,)) is wrong, here are my enum so far.
Код:
enum pInfo
{
	pConnecTime,
	pAdmin,
};
new PlayerInfo[MAX_PLAYERS][pInfo];
I had the problem with the admin part, but i fixed it with:
Код:
enum PInfo
{
    pAdmin,
};
new PlayerInfo[MAX_PLAYERS][pInfo];
Can Anyone Please help me on this, thanks again

-Toni
Reply


Messages In This Thread
New Small Admin Script. - by Toni - 06.03.2010, 02:39
Re: New Small Admin Script. - by Scenario - 06.03.2010, 04:37
Re: New Small Admin Script. - by Toni - 06.03.2010, 14:26
Re: New Small Admin Script. - by Toni - 06.03.2010, 16:47
Re: New Small Admin Script. - by Niixie - 06.03.2010, 16:51
Re: New Small Admin Script. - by Toni - 06.03.2010, 18:34

Forum Jump:


Users browsing this thread: 1 Guest(s)