What The???
#1

I have a problem here

Code:
pawn Код:
public OnPlayerUpdate(playerid)
{
  if(!IsPlayerInRangeOfPoint(playerid, 10.0, 783.2106,-2592.9150,34.5923,))//player range place
    {
     if(IsCmdLvl(playerid,5))
        {
        MoveObject(SEX,788.29461700,-2594.71411100,10.65676100,30.0);//were it will goto
        MoveObject(SEX2,776.80096400,-2591.98999000,10.71056400,30.0);//were it will goto
        SendClientMessage(playerid,0x000fffaa,"The gates will close in 5 seconds!");
        SetTimer("ClosesIn",5000,0);
        }
        else CreateExplosion( 783.2106,-2592.9150,34.5923, 2, Float:5);//place of playerrange
    }
    return 1;
Errors:
pawn Код:
C:\Program Files\Rockstar Games\GTA San Andreas\pawno\new.pwn(216) : error 029: invalid expression, assumed zero
C:\Program Files\Rockstar Games\GTA San Andreas\pawno\new.pwn(218) : error 017: undefined symbol "IsCmdLvl"
C:\Program Files\Rockstar Games\GTA San Andreas\pawno\new.pwn(227) : warning 217: loose indentation
C:\Program Files\Rockstar Games\GTA San Andreas\pawno\new.pwn(229) : error 030: compound statement not closed at the end of file (started at line 216)
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.
Lines:

Line 229 = I have no line 229 but error shows on it my last blank line is 228
Line 216 =
pawn Код:
if(!IsPlayerInRangeOfPoint(playerid, 10.0, 783.2106,-2592.9150,34.5923,))//player range place

Ignore line 218 ill get xadmin now
Reply
#2

You forgot a bracket

pawn Код:
public OnPlayerUpdate(playerid)
{
  if(!IsPlayerInRangeOfPoint(playerid, 10.0, 783.2106,-2592.9150,34.5923))//player range place
  {
     if(IsCmdLvl(playerid,5)) // IsCmdLevel is not defined to anything at all
        {
        MoveObject(SEX,788.29461700,-2594.71411100,10.65676100,30.0);//were it will goto
        MoveObject(SEX2,776.80096400,-2591.98999000,10.71056400,30.0);//were it will goto
        SendClientMessage(playerid,0x000fffaa,"The gates will close in 5 seconds!");
        SetTimer("ClosesIn",5000,0);
        }
        else CreateExplosion( 783.2106,-2592.9150,34.5923, 2, Float:5);//place of playerrange
    }
    return 1;
}
Reply
#3

ty so much
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)