GameTextForPlayer when players is OnPlayerSpawnRequest
#10

Quote:
Originally Posted by pds2012
Посмотреть сообщение
try this. you know where to put this. so help your self

pawn Код:
if(classid == 0 || classid == 1 || classid == 2 || classid == 3 || classid == 4
classid == 5 || classid == 5 || classid == 6 || classid == 7 || classid == 8)
{
    GameTextForPlayer(playerid, "Grove Street", 1000, 5);
}
Код:
C:\Documents and Settings\Administrador\Escritorio\Gang Wars\gamemodes\GangWars.pwn(1054) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrador\Escritorio\Gang Wars\gamemodes\GangWars.pwn(1058) : error 010: invalid function or declaration
C:\Documents and Settings\Administrador\Escritorio\Gang Wars\gamemodes\GangWars.pwn(1061) : error 010: invalid function or declaration
Puting that in
pawn Код:
public OnPlayerRequestClass(playerid, classid)
}
    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
    return 1;
}

if(classid == 0 || classid == 1 || classid == 2 || classid == 3 || classid == 4
classid == 5 || classid == 5 || classid == 6 || classid == 7 || classid == 8)
{
    GameTextForPlayer(playerid, "Grove Street", 1000, 5);
}


Doing this:
Quote:
Originally Posted by BenzoAMG
Посмотреть сообщение
pawn Код:
switch(classid)
{
    case 0 .. 8:
    {
        GameTextForPlayer(playerid, "~g~Grove Street", 1000, 5);
    }
}
I get this:

Код:
C:\Documents and Settings\Administrador\Escritorio\Gang Wars\gamemodes\GangWars.pwn(1062) : error 054: unmatched closing brace ("}")
C:\Documents and Settings\Administrador\Escritorio\Gang Wars\gamemodes\GangWars.pwn(1066) : error 010: invalid function or declaration
Puting that in
pawn Код:
public OnPlayerRequestClass(playerid, classid)
switch(classid)
{
    case 0 .. 8:
    {
        GameTextForPlayer(playerid, "~g~Grove Street", 1000, 5);
    }
}

}
    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)