SA-MP Forums Archive
help please.. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: help please.. (/showthread.php?tid=475149)



help please.. - warlord321 - 11.11.2013

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



Re: help please.. - bensmart469 - 11.11.2013

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



Re: help please.. - Gianmarco - 11.11.2013

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


Re: help please.. - warlord321 - 11.11.2013

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.



Re: help please.. - ModernStreets - 11.11.2013

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