[Event System Problem] - Please Help ! -
Reebok1 - 12.03.2014
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 ! (
)
Re: [Event System Problem] - Please Help ! -
Reebok1 - 12.03.2014
Help me please !
Re: [Event System Problem] - Please Help ! -
Matess - 12.03.2014
Try:
new EventStarted;
new EventLocked;
new Float:ex; // maybe ey and ez too
Re: [Event System Problem] - Please Help ! -
Reebok1 - 12.03.2014
No
Код:
C:\Users\User\Desktop\Crown RPG NewBase\gamemodes\Rp.pwn(481) : error 020: invalid symbol name ""
C:\Users\User\Desktop\Crown RPG NewBase\gamemodes\Rp.pwn(482) : error 001: expected token: ";", but found "new"
C:\Users\User\Desktop\Crown RPG NewBase\gamemodes\Rp.pwn(482) : error 020: invalid symbol name ""
C:\Users\User\Desktop\Crown RPG NewBase\gamemodes\Rp.pwn(483) : error 021: symbol already defined: ""
C:\Users\User\Desktop\Crown RPG NewBase\gamemodes\Rp.pwn(14027) : error 029: invalid expression, assumed zero
C:\Users\User\Desktop\Crown RPG NewBase\gamemodes\Rp.pwn(14027) : warning 215: expression has no effect
C:\Users\User\Desktop\Crown RPG NewBase\gamemodes\Rp.pwn(14028) : error 029: invalid expression, assumed zero
C:\Users\User\Desktop\Crown RPG NewBase\gamemodes\Rp.pwn(14028) : warning 215: expression has no effect
C:\Users\User\Desktop\Crown RPG NewBase\gamemodes\Rp.pwn(14029) : warning 217: loose indentation
C:\Users\User\Desktop\Crown RPG NewBase\gamemodes\Rp.pwn(14036) : error 029: invalid expression, assumed zero
C:\Users\User\Desktop\Crown RPG NewBase\gamemodes\Rp.pwn(14036) : warning 215: expression has no effect
C:\Users\User\Desktop\Crown RPG NewBase\gamemodes\Rp.pwn(14049) : error 029: invalid expression, assumed zero
C:\Users\User\Desktop\Crown RPG NewBase\gamemodes\Rp.pwn(14049) : warning 215: expression has no effect
C:\Users\User\Desktop\Crown RPG NewBase\gamemodes\Rp.pwn(14049) : error 001: expected token: ";", but found ")"
C:\Users\User\Desktop\Crown RPG NewBase\gamemodes\Rp.pwn(14049) : error 029: invalid expression, assumed zero
C:\Users\User\Desktop\Crown RPG NewBase\gamemodes\Rp.pwn(14049) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
11 Errors.
Re: [Event System Problem] - Please Help ! -
Matess - 12.03.2014
Delete your previously defines.
And show me the lines where error is. Not only errors..
Re: [Event System Problem] - Please Help ! -
Reebok1 - 12.03.2014
ok i try
Re: [Event System Problem] - Please Help ! -
Reebok1 - 12.03.2014
ooooo 6 errors
GOOD !
Код:
C:\Users\User\Desktop\Crown RPG NewBase\gamemodes\Rp.pwn(14060) : error 017: undefined symbol "EventInfo"
C:\Users\User\Desktop\Crown RPG NewBase\gamemodes\Rp.pwn(14060) : warning 215: expression has no effect
C:\Users\User\Desktop\Crown RPG NewBase\gamemodes\Rp.pwn(14060) : error 001: expected token: ";", but found "]"
C:\Users\User\Desktop\Crown RPG NewBase\gamemodes\Rp.pwn(14060) : error 029: invalid expression, assumed zero
C:\Users\User\Desktop\Crown RPG NewBase\gamemodes\Rp.pwn(14060) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
The Error is:
[14060] SetPlayerInterior(playerid,EventInfo[EJoin][EInterior]);
Re: [Event System Problem] - Please Help ! -
Reebok1 - 12.03.2014
Matess Help Me Again is 1 ERROR on the line 14060
Re: [Event System Problem] - Please Help ! -
Reebok1 - 12.03.2014
Help me
Re: [Event System Problem] - Please Help ! -
Matess - 12.03.2014
Well then define EventInfo... this isn't your code is it? Copy the define if you can..