12.10.2011, 21:11
No meu gm nemhum veiculo gasta gasolina oq fasso :
SetTimer("gasosa", "5000"...
public CheckGas()
{
new string[128];
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i))
{
SetPlayerWantedLevel(i, WantedPoints[i]);
if(GetPlayerState(i) == PLAYER_STATE_DRIVER)
{
new vid = GetPlayerVehicleID(i);
if(GetVehicleModel(GetPlayerVehicleID(i)) != 481 && 510)
{
if(Gas[vid] >= 1)
{
//format(string, sizeof(string), "~p~Gasolina: ~w~%d~p~ R: ~w~%d",Gas[vid],Marchas[i][1]);
format(string, sizeof(string), "~p~Gasolina: ~w~%d",Gas[vid]);
if(Gas[vid] <= 10)
PlayerPlaySound(i, 1085, 0.0, 0.0, 0.0);
if(Teste[i] == 0 && Player[i][LastSpeed] > 10 && GetVehicleModel(vid) != 462 && GetVehicleModel(vid) != 481 && GetVehicleModel(vid) != 510)
{
tempGas[vid] ++;
if(tempGas[vid] >= 20)
{
tempGas[vid] = 0;
Gas[vid]--;
}
}
}
else
{
if(Teste[i] == 0)
{
NoFuel[i] = 1;
SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,0,0,0,0,0,0);
GameTextForPlayer(i,"~w~~n~~n~~n~~n~~n~~n~~n~~n~veўculo sem combustўvel",1500,6);
}
}
}
SetTimer("CheckGas", "75000", "1000");
C:\Documents and Settings\Administrador\Desktop\Gta San Andreas\PH 1.7\gamemodes\elite.pwn(15783) : eqrror 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
SetTimer("CheckGas", 75000, true);