*** This topic title is not descriptive.
#1

error 076: syntax error in the expression, or invalid function call

case LOS_SANTOS:
pawn Код:
{
    LSJail[ID]=1;
    switch(random(random))
    {
        case 0:
        {
            SetPlayerInterior(ID, 6);
            SetPlayerPos(ID,264.4340,77.4837,1001.0391);
                 }
        case 1:
        {
            SetPlayerInterior(ID, 6);
            SetPlayerPos(ID,265.0054,82.2404,1001.0391);
        }
        case 3:
        {
            SetPlayerInterior(ID, 6);
            SetPlayerPos(ID,264.8009,86.6341,1001.0391);
        }
    }
}
pawn Код:
switch(random(random))
Reply
#2

try to make it:
pawn Код:
case 0:
        {
            SetPlayerInterior(ID, 6);
            SetPlayerPos(ID,264.4340,77.4837,1001.0391);
        }
Reply
#3

Код:
new
    rand = random( 3 )
;
switch( rand )
{
    case 0:
    {
        SetPlayerInterior(ID, 6);
        SetPlayerPos(ID,264.4340,77.4837,1001.0391);
    }
    case 1:
    {
        SetPlayerInterior(ID, 6);
        SetPlayerPos(ID,265.0054,82.2404,1001.0391);
    }
    case 3:
    {
        SetPlayerInterior(ID, 6);
        SetPlayerPos(ID,264.8009,86.6341,1001.0391);
    }
}
Reply
#4

Quote:
Originally Posted by Dwane
Посмотреть сообщение
Код:
new
    rand = random( 3 )
;
switch( rand )
{
    case 0:
    {
        SetPlayerInterior(ID, 6);
        SetPlayerPos(ID,264.4340,77.4837,1001.0391);
    }
    case 1:
    {
        SetPlayerInterior(ID, 6);
        SetPlayerPos(ID,265.0054,82.2404,1001.0391);
    }
    case 3:
    {
        SetPlayerInterior(ID, 6);
        SetPlayerPos(ID,264.8009,86.6341,1001.0391);
    }
}
thnx
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)