Event COmmand
#1

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
Reply
#2

What is the line 12255 ..
Reply
#3

the problem is in luxadmin not your main script..show line 12255 of luxadmin
Reply
#4

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).
Reply
#5

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;
}
Reply
#6

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;
}
Reply
#7

what?delte that code and replace it with mine
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)