[Ajuda] Retirar Player do Veнculo
#3

Quote:
Originally Posted by FleXx_01
Посмотреть сообщение
pawn Код:
new Grove[4]; // Nъmero dos carros+1

forward Grovecar(playerid);

// na public ongamemodeinit
Grove[0] = CreateVehicle(modelo, X, Y, Z, Rotaзгo, Cor1, Cor2, RespawnDelay); //Veiculo numero 0
Grove[1] = CreateVehicle(modelo, X, Y, Z, Rotaзгo, Cor1, Cor2, RespawnDelay); //Veiculo numero 1
Grove[2] = CreateVehicle(modelo, X, Y, Z, Rotaзгo, Cor1, Cor2, RespawnDelay); //Veiculo numero 2
Grove[3] = CreateVehicle(modelo, X, Y, Z, Rotaзгo, Cor1, Cor2, RespawnDelay); //Veiculo numero 3

// na OnPlayerStateChange

    if(newstate == PLAYER_STATE_DRIVER) Grovecar(playerid);

// e depois
public GroveCar(playerid)
{
    for(new c = 0; c <= 4; c++)
    {
        if(IsPlayerInVehicle(playerid, Grove[c]) && pDados[playerid][Grove] < 1)
        {
            SendClientMessage(playerid, COR_eRRO, "Vocк nгo й um Groove Los Santos");
            RemovePlayerFromVehicle(playerid);
            return 1;
        }
    }
    return 1;
}
Usa esse exemplo ai , ve se funfa
Код:
C:\Documents and Settings\Geral\Meus documentos\Downloads\MAURICIO\samp03e_svr_R2_win32\gamemodes\TESTEGANGS2.pwn(131) : error 012: invalid function call, not a valid address
C:\Documents and Settings\Geral\Meus documentos\Downloads\MAURICIO\samp03e_svr_R2_win32\gamemodes\TESTEGANGS2.pwn(131) : warning 215: expression has no effect
C:\Documents and Settings\Geral\Meus documentos\Downloads\MAURICIO\samp03e_svr_R2_win32\gamemodes\TESTEGANGS2.pwn(131) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Geral\Meus documentos\Downloads\MAURICIO\samp03e_svr_R2_win32\gamemodes\TESTEGANGS2.pwn(131) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Geral\Meus documentos\Downloads\MAURICIO\samp03e_svr_R2_win32\gamemodes\TESTEGANGS2.pwn(131) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Linha:
PHP код:
if(newstate == PLAYER_STATE_DRIVERGroveCars(playerid); 
Complemento da linha :

PHP код:
public OnPlayerStateChange(playeridnewstateoldstate)
{
    if(
newstate == PLAYER_STATE_DRIVERGroveCars(playerid);
    return 
1;

Da uma olhada no GM...

http://pastebin.com/n0i7SZBj

:/
Reply


Messages In This Thread
Retirar Player do Veнculo - by [THs]ShadoW - 05.12.2012, 16:15
Re: Retirar Player do Veнculo - by FleXx_01 - 05.12.2012, 16:21
Re: Retirar Player do Veнculo - by [THs]ShadoW - 05.12.2012, 16:31
Re: Retirar Player do Veнculo - by Maklister - 05.12.2012, 16:49
Re: Retirar Player do Veнculo - by FleXx_01 - 05.12.2012, 16:59
Re: Retirar Player do Veнculo - by [THs]ShadoW - 05.12.2012, 17:02
Re: Retirar Player do Veнculo - by Maklister - 05.12.2012, 17:26
Re: Retirar Player do Veнculo - by [THs]ShadoW - 05.12.2012, 17:40
Re: Retirar Player do Veнculo - by lukas_loky - 05.12.2012, 17:48

Forum Jump:


Users browsing this thread: 2 Guest(s)