Gate help pls!! - 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: Gate help pls!! (
/showthread.php?tid=371488)
Gate help pls!! -
Shayaziz - 23.08.2012
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.
Re: Gate help pls!! -
Shayaziz - 23.08.2012
please help me with this as fast as possible
Re: Gate help pls!! -
preda98 - 23.08.2012
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)
Re: Gate help pls!! -
Shayaziz - 23.08.2012
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.
Re: Gate help pls!! -
HyDrAtIc - 23.08.2012
That mean you haven't define it add anywhere at top
That should work fine
Re: Gate help pls!! -
Shayaziz - 23.08.2012
Thanks worked great!!
Re: Gate help pls!! -
Shayaziz - 24.08.2012
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?