[aju]Portao naum abre com A BUZINA - 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: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [aju]Portao naum abre com A BUZINA (
/showthread.php?tid=293989)
[aju]Portao naum abre com A BUZINA -
kshorro - 30.10.2011
PHP код:
if(IsPlayerInRangeOfPoint(35,1544.81921387,-1627.77246094,15.15620422,0.0))
{
if ((newkeys == KEY_HORN) && (IsPlayerInAnyVehicle(playerid)))
{
OnPlayerCommandText(playerid, "/portaodp");
}
}
return 1;
}
NAUM A WARNING E NEM ERROR
Re: [aju]Portao naum abre com A BUZINA -
Jason_King - 30.10.2011
O portгo sу nгo funciona com buzina, ou nгo funciona de jeito nenhum?
Re: [aju]Portao naum abre com A BUZINA -
CyNiC - 30.10.2011
O primeiro parвmetro da funзгo IsPlayerInRangeOfPOint deve ser playerid e estб 35, deverб funcionar assim:
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 35.0, 1544.81921387,-1627.77246094,15.15620422))
{
if ((newkeys == KEY_HORN) && (IsPlayerInAnyVehicle(playerid)))
{
OnPlayerCommandText(playerid, "/portaodp");
}
}
return 1;
}
Re: [aju]Portao naum abre com A BUZINA -
Miqueias Barros - 30.10.2011
Quote:
Originally Posted by CyNiC
O primeiro parвmetro da funзгo IsPlayerInRangeOfPOint deve ser playerid e estб 35, deverб funcionar assim:
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 35.0, 1544.81921387,-1627.77246094,15.15620422)) { if ((newkeys == KEY_HORN) && (IsPlayerInAnyVehicle(playerid))) { OnPlayerCommandText(playerid, "/portaodp"); } } return 1; }
|
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 35.0, 1544.81921387,-1627.77246094,15.15620422))
{
if ((newkeys == KEY_HORN) && (IsPlayerInAnyVehicle(playerid)))
{
OnPlayerCommandText(playerid, "/portaodp");
}
return 1;
}
Ouve uma chave a mais..
Re: [aju]Portao naum abre com A BUZINA -
Lуs - 30.10.2011
Quote:
Originally Posted by Miqueias Barros
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 35.0, 1544.81921387,-1627.77246094,15.15620422)) { if ((newkeys == KEY_HORN) && (IsPlayerInAnyVehicle(playerid))) { OnPlayerCommandText(playerid, "/portaodp"); } return 1; }
Ouve uma chave a mais..
|
Ele deve ter enviado com o final do
OnPlayerKeyStateChange.
Re: [aju]Portao naum abre com A BUZINA - [S]trong - 30.10.2011
o controle deve tar quebrado
Re: [aju]Portao naum abre com A BUZINA -
Cristhian - 30.10.2011
Quote:
Originally Posted by [S]trong
o controle deve tar quebrado
|
kkkkkkkkkkkk, eu'ri'alto
Re: [aju]Portao naum abre com A BUZINA - array13 - 30.10.2011
Quote:
Originally Posted by [S]trong
o controle deve tar quebrado
|
Ou o computador nao aceita o teclado lol