Event COmmand - 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: Event COmmand (
/showthread.php?tid=389014)
Event COmmand -
Mustafa6155 - 31.10.2012
this is the script
Код:
CMD:startevent(playerid, params[])
{
if(AccInfo[playerid][Level] >= 3)
{
GameTextForPlayer(playerid,"~b~An event has Spawned use /joinevent!",5000,4);
if(Events == 1) return SendClientMessage(playerid,-1,"There is already an event created");
GetPlayerPos(playerid,Float:Event[0],Float:Event[1],Float:Event[2]);
Events = 1;
} else if(AccInfo[playerid][Level] >= 0) return SendClientMessage(playerid, -1, " you are not authorized to use that command!");
return 1;
}
CMD:joinevent(playerid, params[])
{
if(Events == 0) return SendClientMessage(playerid, , "An Event has not Started.");
SetPlayerPos(playerid,Float:Event[0],Float:Event[1],Float:Event[2]);
return 1;
}
CMD:lockevent(playerid, params[])
{
if(AccInfo[playerid][Level] >= 3)
{
GameTextForPlayer(playerid,"~r~The Event is Over!",5000,4);
if(Events == 0) return SendClientMessage(playerid, Red, "No event has been created");
Events = 0;
} else if(PlayerInfo[playerid][pAdmin] == 0) return SendClientMessage(playerid,red,"ERROR: Only for admins");
return 1;
}
i got an error
Код:
CMD:joinevent(playerid, params[])
{
if(Events == 0) return SendClientMessage(playerid, , "An Event has not Started.");
SetPlayerPos(playerid,Float:Event[0],Float:Event[1],Float:Event[2]);
return 1;
}
the error
Код:
C:\Users\Mustafa\Desktop\bf3\filterscripts\LuxAdmin.pwn(12255) : error 029: invalid expression, assumed zero
C:\Users\Mustafa\Desktop\bf3\filterscripts\LuxAdmin.pwn(12255) : warning 215: expression has no effect
C:\Users\Mustafa\Desktop\bf3\filterscripts\LuxAdmin.pwn(12255) : error 001: expected token: ";", but found ")"
C:\Users\Mustafa\Desktop\bf3\filterscripts\LuxAdmin.pwn(12255) : error 029: invalid expression, assumed zero
C:\Users\Mustafa\Desktop\bf3\filterscripts\LuxAdmin.pwn(12255) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Код:
new Events;
new Float:Event[3];
Please help
Re: Event COmmand -
InfiniTy. - 31.10.2012
What is the line 12255 ..
Re: Event COmmand -
[HK]Ryder[AN] - 31.10.2012
the problem is in luxadmin not your main script..show line 12255 of luxadmin
Re: Event COmmand -
Abhishek. - 31.10.2012
well he gave the compiled codes of his filterscript which is LuxAdmin as per the compilation results and its isnt like GM that compiler show's includes error in your script so and he would have compiled Filterscript and posted Gm codes
i know what i just wrote is confuseing but in your theory he did the last ting :O how can someone be so chuteya(not an insult).
Re: Event COmmand -
[HK]Ryder[AN] - 31.10.2012
just forgot about it
found the error
change the code to
pawn Код:
CMD:joinevent(playerid, params[])
{
if(Events == 0) return SendClientMessage(playerid, -1, "An Event has not Started.");
SetPlayerPos(playerid,Float:Event[0],Float:Event[1],Float:Event[2]);
return 1;
}
Re: Event COmmand -
Mustafa6155 - 31.10.2012
CMD:joinevent(playerid, params[])
{
if(Events == 0) return SendClientMessage(playerid, , "An Event has not Started.");
SetPlayerPos(playerid,Float:Event[0],Float:Event[1],Float:Event[2]);
return 1;
}
Re: Event COmmand -
[HK]Ryder[AN] - 31.10.2012
what?delte that code and replace it with mine