[Ajuda] Apertar Letra F pra acessar
#1

Eu queria que na seguinte coordenada 1722.5591,-1632.8837,20.2154 quando o player apertasse F abriria este menu:

Код:
{
	        TogglePlayerControllable(playerid, 0);
	    	ShowPlayerDialog(playerid, 10, DIALOG_STYLE_LIST, "{FF7800}Ajuda do RPG Brasil Style Of Life", "{FF7800}Ajuda Player\n{FF7800}Ajuda Empresa\n{FF7800}Ajuda Casa\n{FF7800}Ajuda Aluguel\n{FF7800}Ajuda Celular\n{FF7800}Ajuda Lider\n{FF7800}Ajuda Emprego\n{FF7800}Ajuda Helpers\n{FF7800}Ajuda Chat IRC\n{FF7800}Ajuda Cozinha\n{FF7800}Ajuda Casamento\n{FF0005}Forum do BSL\n{FF0005}Creditos do RPG Brasil Style Of Life\nComandos de VIPs\nConta VIP/Sуcio\nComandos de socios", "Selecionar", "Cancelar");
		}
Reply
#2

pawn Код:
if (newkeys==KEY_SECONDARY_ATTACK)
{
if(PlayerToPoint(3.0, playerid, 1722.5591,-1632.8837,20.2154))
TogglePlayerControllable(playerid, 0);
ShowPlayerDialog(playerid, 10, DIALOG_STYLE_LIST, "{FF7800}Ajuda do RPG Brasil Style Of Life", "{FF7800}Ajuda Player\n{FF7800}Ajuda Empresa\n{FF7800}Ajuda Casa\n{FF7800}Ajuda Aluguel\n{FF7800}Ajuda Celular\n{FF7800}Ajuda Lider\n{FF7800}Ajuda Emprego\n{FF7800}Ajuda Helpers\n{FF7800}Ajuda Chat IRC\n{FF7800}Ajuda Cozinha\n{FF7800}Ajuda Casamento\n{FF0005}Forum do BSL\n{FF0005}Creditos do RPG Brasil Style Of Life\nComandos de VIPs\nConta VIP/Sуcio\nComandos de socios", "Selecionar", "Cancelar");
}
Reply
#3

https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange
Reply
#4

Obrigado MonFiTy ....
Reply
#5

Nads deu certo ai ?
Reply
#6

Deu sim ^^ vlwws
Tipo mais como crio outro desse so que com o dialogo so de escrita mesmo e com 1 so botao ?
Reply
#7

tente mudar isso
pawn Код:
ShowPlayerDialog(playerid, 10, DIALOG_STYLE_LIST, "{FF7800}Ajuda do RPG Brasil Style Of Life", "{FF7800}Ajuda Player\n{FF7800}Ajuda Empresa\n{FF7800}Ajuda Casa\n{FF7800}Ajuda Aluguel\n{FF7800}Ajuda Celular\n{FF7800}Ajuda Lider\n{FF7800}Ajuda Emprego\n{FF7800}Ajuda Helpers\n{FF7800}Ajuda Chat IRC\n{FF7800}Ajuda Cozinha\n{FF7800}Ajuda Casamento\n{FF0005}Forum do BSL\n{FF0005}Creditos do RPG Brasil Style Of Life\nComandos de VIPs\nConta VIP/Sуcio\nComandos de socios", "Selecionar", "Cancelar");
POR ESSE

pawn Код:
ShowPlayerDialog(playerid, 10, DIALOG_STYLE_LIST, "{FF7800}Ajuda do RPG Brasil Style Of Life", "{FF7800}Ajuda Player\n{FF7800}Ajuda Empresa\n{FF7800}Ajuda Casa\n{FF7800}Ajuda Aluguel\n{FF7800}Ajuda Celular\n{FF7800}Ajuda Lider\n{FF7800}Ajuda Emprego\n{FF7800}Ajuda Helpers\n{FF7800}Ajuda Chat IRC\n{FF7800}Ajuda Cozinha\n{FF7800}Ajuda Casamento\n{FF0005}Forum do BSL\n{FF0005}Creditos do RPG Brasil Style Of Life\nComandos de VIPs\nConta VIP/Sуcio\nComandos de socios", "Ok");
n sei se vai funcioar '0'
Reply
#8

Quote:
Originally Posted by MonFiTy
Посмотреть сообщение
tente mudar isso
pawn Код:
ShowPlayerDialog(playerid, 10, DIALOG_STYLE_LIST, "{FF7800}Ajuda do RPG Brasil Style Of Life", "{FF7800}Ajuda Player\n{FF7800}Ajuda Empresa\n{FF7800}Ajuda Casa\n{FF7800}Ajuda Aluguel\n{FF7800}Ajuda Celular\n{FF7800}Ajuda Lider\n{FF7800}Ajuda Emprego\n{FF7800}Ajuda Helpers\n{FF7800}Ajuda Chat IRC\n{FF7800}Ajuda Cozinha\n{FF7800}Ajuda Casamento\n{FF0005}Forum do BSL\n{FF0005}Creditos do RPG Brasil Style Of Life\nComandos de VIPs\nConta VIP/Sуcio\nComandos de socios", "Selecionar", "Cancelar");
POR ESSE

pawn Код:
ShowPlayerDialog(playerid, 10, DIALOG_STYLE_LIST, "{FF7800}Ajuda do RPG Brasil Style Of Life", "{FF7800}Ajuda Player\n{FF7800}Ajuda Empresa\n{FF7800}Ajuda Casa\n{FF7800}Ajuda Aluguel\n{FF7800}Ajuda Celular\n{FF7800}Ajuda Lider\n{FF7800}Ajuda Emprego\n{FF7800}Ajuda Helpers\n{FF7800}Ajuda Chat IRC\n{FF7800}Ajuda Cozinha\n{FF7800}Ajuda Casamento\n{FF0005}Forum do BSL\n{FF0005}Creditos do RPG Brasil Style Of Life\nComandos de VIPs\nConta VIP/Sуcio\nComandos de socios", "Ok");
n sei se vai funcioar '0'
pawn Код:
ShowPlayerDialog(playerid, 10, DIALOG_STYLE_LIST, "{FF7800}Ajuda do RPG Brasil Style Of Life", "{FF7800}Ajuda Player\n{FF7800}Ajuda Empresa\n{FF7800}Ajuda Casa\n{FF7800}Ajuda Aluguel\n{FF7800}Ajuda Celular\n{FF7800}Ajuda Lider\n{FF7800}Ajuda Emprego\n{FF7800}Ajuda Helpers\n{FF7800}Ajuda Chat IRC\n{FF7800}Ajuda Cozinha\n{FF7800}Ajuda Casamento\n{FF0005}Forum do BSL\n{FF0005}Creditos do RPG Brasil Style Of Life\nComandos de VIPs\nConta VIP/Sуcio\nComandos de socios", "Ok", #);
Reply
#9

Quote:
Originally Posted by Don_Speed
Посмотреть сообщение
pawn Код:
ShowPlayerDialog(playerid, 10, DIALOG_STYLE_LIST, "{FF7800}Ajuda do RPG Brasil Style Of Life", "{FF7800}Ajuda Player\n{FF7800}Ajuda Empresa\n{FF7800}Ajuda Casa\n{FF7800}Ajuda Aluguel\n{FF7800}Ajuda Celular\n{FF7800}Ajuda Lider\n{FF7800}Ajuda Emprego\n{FF7800}Ajuda Helpers\n{FF7800}Ajuda Chat IRC\n{FF7800}Ajuda Cozinha\n{FF7800}Ajuda Casamento\n{FF0005}Forum do BSL\n{FF0005}Creditos do RPG Brasil Style Of Life\nComandos de VIPs\nConta VIP/Sуcio\nComandos de socios", "Ok", #);
Hum esqueci do # '-'
Reply
#10

Deu Isso:
Код:
C:\Users\User\Desktop\Paulo\BSL Backups\GM BSL PRONTO - Atual\BrasilStyleOfLifeRp.pwn(51028) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:          11708 bytes
Code size:          2379460 bytes
Data size:          2359384 bytes
Stack/heap size:      16384 bytes; estimated max. usage=6628 cells (26512 bytes)
Total requirements: 4766936 bytes

1 Warning.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)