[Ayuda] Autos
#1

Hola..
Lo que quiero es que para montarse en un auto por ejemplo el "tanque" (rinho) tengan que haver matado 100 personas.

Reply
#2

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
  ...
  SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
  return 1;
}
pawn Код:
public OnPlayerStateChange(playerid, oldstate, newstate)
{
  if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
  {
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == aquiponeselmodelodeltanke && GetPlayerScore(playerid) < 100)
    {
      RemovePlayerFromVehicle(playerid);
    }
  }
  return 1;
}
Reply
#3

Me aparece este error:

Код:
 Function heading differs from prototype
y asi tengo el pawn
pawn Код:
public OnPlayerStateChange(playerid, oldstate, newstate)
{
  if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
  {
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 432 && GetPlayerScore(playerid) < 100)
    {
      RemovePlayerFromVehicle(playerid);
        }
}
  return 1;
}
Que debo haceR?
Reply
#4

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
  if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
  {
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == aquiponeselmodelodeltanke && GetPlayerScore(playerid) < 100)
    {
      RemovePlayerFromVehicle(playerid);
    }
  }
  return 1;
}
Reply
#5

Muchas Gracias Me Sirvio!!

PD: Cerrar Post
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)