[Ayuda] Autos - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (
https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: [Ayuda] Autos (
/showthread.php?tid=132279)
[Ayuda] Autos -
X-DiEgO-X - 07.03.2010
Hola..
Lo que quiero es que para montarse en un auto por ejemplo el "tanque" (rinho) tengan que haver matado 100 personas.
Re: [Ayuda] Autos -
Miguel - 07.03.2010
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;
}
Re: [Ayuda] Autos -
X-DiEgO-X - 07.03.2010
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?
Re: [Ayuda] Autos -
Miguel - 07.03.2010
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;
}
Re: [Ayuda] Autos -
X-DiEgO-X - 07.03.2010
Muchas Gracias Me Sirvio!!
PD: Cerrar Post