help please..
#1

how to fix this ? for /se(nate) locker


pawn Код:
D:\Game\RP\gamemodes\TRRP.pwn(38128) : error 008: must be a constant expression; assumed zero
D:\Game\RP\gamemodes\TRRP.pwn(38129) : error 029: invalid expression, assumed zero
D:\Game\RP\gamemodes\TRRP.pwn(38129 -- 38130) : warning 215: expression has no effect
D:\Game\RP\gamemodes\TRRP.pwn(38130) : error 001: expected token: ";", but found "else"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.
pawn Код:
CMD:se(playerid, params[])
{
    if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
    {
        if(IsPlayerInRangeOfPoint(playerid,3,354.37,173.91,1008.38)||// SENATE Duty
        {
            ShowPlayerDialog(playerid, SEMENU, DIALOG_STYLE_LIST, "Government","Duty\nUniforms\nEquipment", "Select", "Cancel");
        }
        else
        {
            SendClientMessageEx(playerid, COLOR_WHITE, "You aren't in range of your Senate lockers.");
        }
    }
    return 1;
}
Reply
#2

Change this:
pawn Код:
if(IsPlayerInRangeOfPoint(playerid,3,354.37,173.91,1008.38)||// SENATE Duty
To this:
pawn Код:
if(IsPlayerInRangeOfPoint(playerid,3,354.37,173.91,1008.38))// SENATE Duty
Reply
#3

https://sampforum.blast.hk/showthread.php?tid=475145 look this
Reply
#4

Quote:
Originally Posted by bensmart469
Посмотреть сообщение
Change this:
pawn Код:
if(IsPlayerInRangeOfPoint(playerid,3,354.37,173.91,1008.38)||// SENATE Duty
To this:
pawn Код:
if(IsPlayerInRangeOfPoint(playerid,3,354.37,173.91,1008.38))// SENATE Duty
now i got this..
pawn Код:
D:\Game\RP\gamemodes\TRRP.pwn(38124) : error 036: empty statement
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Reply
#5

try
pawn Код:
if(IsPlayerInRangeOfPoint(playerid,3,354.37,173.91,1008.38));
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)