Ayuda playerid
#1

Buenas,

Lo que me pasa es que, el GameTextForPlayer y el SendClientMessage lo quiero que se lo envie al jugador, no a todas las peronas del srv..

pawn Код:
Fuel = SetTimer("FuelTimer",50000,false);
pawn Код:
public FuelTimer()
{
    for(new i, g_m = GetMaxPlayers(); i < g_m; i++) if(IsPlayerConnected(i))
    {
    SetVehicleHealth(mycar7, 150.0);
    GameTextForPlayer(i,"CAR WITHOUT FUEL", 5000, 3);
    SendClientMessage(i,COLOR_LIGHTBLUE,"NO FUEL FOR THIS CAR");
    }
    return 1;
}
Como lo podrнa poner solo para 'playerid'
Reply
#2

pawn Код:
Fuel = SetTimerEx("FuelTimer",50000,false, "d", playerid);

public FuelTimer(playerid)
{
    SetVehicleHealth(mycar7, 150.0);
    GameTextForPlayer(playerid,"CAR WITHOUT FUEL", 5000, 3);
    SendClientMessage(playerid,COLOR_LIGHTBLUE,"NO FUEL FOR THIS CAR");
    return 1;
}
Reply
#3

Me da este error:

pawn Код:
C:\Users\Valentino\Desktop\Rat's propiety\0.3b Server Samp1\gamemodes\DS.pwn(2615) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664          Copyright © 1997-2006, ITB CompuPhase


1 Error.
Linea 2615:

pawn Код:
public EjectTimer(playerid)
Reply
#4

agregale esto
forward FuelTimer(playerid);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)