Gate help pls!!
#1

Hello, i want to make a gate that only the licensers will be able to open but i cant quite make it go my way.. so im looking for your help now! please tell me what i did wrong in this.

Код:
if(!strcmp(cmdtext, "/opendoor", true))
	{
   	    if(IsA L.S Licensers(playerid) || PlayerInfo[playerid][pAdmin] >= 6)
	    {
	        if(IsPlayerInRangeOfPoint(playerid, 3029,2119.5,-2275.6999511719,19.200000762939))
			{
			    if(armsdealerdoor == 0)
			    {
		      		MoveDynamicObject(armsdealerdoor, 2119.5,-2275.6999511719,16.799999237061, 1.7500);
		      		SendClientMessage(playerid, COLOR_BLUE,"Arms Dealer's Door is Open, Please Close it!");
		      		GetPlayerName(playerid, sendername, sizeof(sendername));
		      		format(string, sizeof(string), "* %s takes his/her remote control and opens the Door.", sendername);
		      		ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
		      		armsdealerdoor = 1;
				}
				else
				{
		      		MoveDynamicObject(armsdealerdoor, 2119.5,-2275.6999511719,19.200000762939, 3.0000);
		      		SendClientMessage(playerid, COLOR_BLUE,"Arms Dealer's Door is Closed, Thank You!");
		      		GetPlayerName(playerid, sendername, sizeof(sendername));
		      		format(string, sizeof(string), "* %s takes his/her remote control and closes the Door.", sendername);
		      		ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
		      		armsdealerdoor = 0;
				}
			}
This is the errors i get..
Код:
C:\Users\new account\Desktop\Everything and Anything\Server\Script\gamemodes\mazda.pwn(48626) : error 017: undefined symbol "IsA"
C:\Users\new account\Desktop\Everything and Anything\Server\Script\gamemodes\mazda.pwn(48626) : error 017: undefined symbol "L"
C:\Users\new account\Desktop\Everything and Anything\Server\Script\gamemodes\mazda.pwn(48626) : error 029: invalid expression, assumed zero
C:\Users\new account\Desktop\Everything and Anything\Server\Script\gamemodes\mazda.pwn(48626) : fatal error 107: too many error messages on one line

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


4 Errors.
Reply
#2

please help me with this as fast as possible
Reply
#3

Instead of
IsA L.S Licensers(playerid)
PUT
IsAL.SLicensers(playerid)
IF IT DOES NOT WORK
put
IsALSLicensers(playerid)
and change
stock IsA L.S Licensers(playerid)
into
stock IsALSLicensers(playerid)
Reply
#4

sorry that didnt work :/ this is the error i got.
Код:
C:\Users\new account\Desktop\Everything and Anything\Server\Script\gamemodes\mazda.pwn(48626) : error 017: undefined symbol "IsALSLicensers"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#5

That mean you haven't define it add anywhere at top

pawn Код:
#define IsALSLicensers
That should work fine
Reply
#6

Thanks worked great!!
Reply
#7

Hello again, i was going inside the gate today and noticed that only the admin with that admin level i set can open the gate, not even the licensers can open it.. nothing has been changed in the gate lines but still only admin with the level i put can open it.. why?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)