[Event System Problem] - Please Help !
#1

Hello , first , sorry for my bad english ( I am a Russian )
So , I have a 8 Error in Pawno

Watch:
Deffine:
//=====================================
#define EventStarted
#define EventLocked
//=====================================
Код:
	if(strcmp(cmd, "/startevent", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if (PlayerInfo[playerid][pAdmin] >= 5)
            {
                EventStarted = 1;
                EventLocked = 0;
                GetPlayerPos(playerid,ex,ey,ez);
                GetPlayerVirtualWorld(playerid);
                GetPlayerInterior(playerid);
                BroadCast(COLOR_LIGHTBLUE, "** Notice: An Event has started, use /joinevent.");
            }
            else if (PlayerInfo[playerid][pAdmin] >= 5)
            {
            EventStarted = 0;
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   you are not authorized to use that command!");
            }
        }
        return 1;
    }
    if(strcmp(cmd, "/joinevent", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(EventStarted == 0)
            {
                  SendClientMessage(playerid, COLOR_LIGHTBLUE, " ** An Event has not Started.");
                  return 1;
            }
            else if(EventLocked == 1)
            {
                  SendClientMessage(playerid, COLOR_RED, "** The event is locked.");
                  return 1;
            }
            new EJoin = strval(tmp);
            new vw = GetPlayerVirtualWorld(playerid);
            SetPlayerPos(playerid,ex,ey,ez);
            SetPlayerVirtualWorld(playerid,vw);
            SetPlayerInterior(playerid,EventInfo[EJoin][EInterior]);
            PlayerInfo[playerid][pInt] = EventInfo[EJoin][EInterior];
        }
        return 1;
    }
    if(strcmp(cmd, "/lockevent", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if (PlayerInfo[playerid][pAdmin] >= 5)
            {
                EventLocked = 1;
                BroadCast(COLOR_YELLOW, "** Notice: The event has been locked by a Admin **");
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   you are not authorized to use that command!");
            }
        }
        return 1;
    }
I have a 8 ERRORS :
Код:
C:\Users\User\Desktop\Crown RPG NewBase\gamemodes\Rp.pwn(14021) : error 029: invalid expression, assumed zero
C:\Users\User\Desktop\Crown RPG NewBase\gamemodes\Rp.pwn(14021) : warning 215: expression has no effect
C:\Users\User\Desktop\Crown RPG NewBase\gamemodes\Rp.pwn(14022) : error 029: invalid expression, assumed zero
C:\Users\User\Desktop\Crown RPG NewBase\gamemodes\Rp.pwn(14022) : warning 215: expression has no effect
C:\Users\User\Desktop\Crown RPG NewBase\gamemodes\Rp.pwn(14023) : warning 217: loose indentation
C:\Users\User\Desktop\Crown RPG NewBase\gamemodes\Rp.pwn(14023) : error 017: undefined symbol "ex"
C:\Users\User\Desktop\Crown RPG NewBase\gamemodes\Rp.pwn(14030) : error 029: invalid expression, assumed zero
C:\Users\User\Desktop\Crown RPG NewBase\gamemodes\Rp.pwn(14030) : warning 215: expression has no effect
C:\Users\User\Desktop\Crown RPG NewBase\gamemodes\Rp.pwn(14043) : error 029: invalid expression, assumed zero
C:\Users\User\Desktop\Crown RPG NewBase\gamemodes\Rp.pwn(14043) : warning 215: expression has no effect
C:\Users\User\Desktop\Crown RPG NewBase\gamemodes\Rp.pwn(14043) : error 001: expected token: ";", but found ")"
C:\Users\User\Desktop\Crown RPG NewBase\gamemodes\Rp.pwn(14043) : error 029: invalid expression, assumed zero
C:\Users\User\Desktop\Crown RPG NewBase\gamemodes\Rp.pwn(14043) : fatal error 107: too many error messages on one line

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


8 Errors.
And ERROR`s is:
[14021] EventStarted = 1;
[14022] EventLocked = 0;
[14023] GetPlayerPos(playerid,ex,ey,ez);
[14030] EventStarted = 0;
[14043] if(EventStarted == 0)


Please HELP me with THIS ! ( )
Reply


Messages In This Thread
[Event System Problem] - Please Help ! - by Reebok1 - 12.03.2014, 17:27
Re: [Event System Problem] - Please Help ! - by Reebok1 - 12.03.2014, 17:31
Re: [Event System Problem] - Please Help ! - by Matess - 12.03.2014, 17:33
Re: [Event System Problem] - Please Help ! - by Reebok1 - 12.03.2014, 17:38
Re: [Event System Problem] - Please Help ! - by Matess - 12.03.2014, 17:40
Re: [Event System Problem] - Please Help ! - by Reebok1 - 12.03.2014, 17:40
Re: [Event System Problem] - Please Help ! - by Reebok1 - 12.03.2014, 17:47
Re: [Event System Problem] - Please Help ! - by Reebok1 - 12.03.2014, 17:49
Re: [Event System Problem] - Please Help ! - by Reebok1 - 12.03.2014, 17:54
Re: [Event System Problem] - Please Help ! - by Matess - 12.03.2014, 17:54

Forum Jump:


Users browsing this thread: 3 Guest(s)