[DUV] Dialog
#3

Quote:
Originally Posted by SuB_ZeRo0_
Tenta isso:

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
 if(dialogid == DIALOG_1)
 {
 if(response)
 {
 if(listitem == 0)
 {
 GivePlayerWeapon(playerid, 24, 999);
 GivePlayerWeapon(playerid, 16, 1);
 GivePlayerWeapon(playerid, 34, 999);
 GivePlayerWeapon(playerid, 31, 999);
 GivePlayerWeapon(playerid, 32, 999);
 }
 if(listitem == 1)
 {
 SetPlayerHealth(playerid, 100);
 }
 if(listitem == 2)
 {
 SetPlayerArmour(playerid, 100);
 }
 }
 return 1;
}

 if(dialogid == DIALOG_2)
 {
 if(response)
 {
 if(listitem == 0) {
 ShowPlayerDialog(playerid,2,DIALOG_STYLE_LIST,"Comandos","/pg Abre portao da Groove \n/pa Abre portao dos Aztecas \n/pc Abre portao do Comando Vermelho \n/pv Abre portao dos Vagos \n/pm Abre portao da PM","Pronto","Cancelar");
 }
 if(listitem == 1) {
 ShowPlayerDialog(playerid,2,DIALOG_STYLE_LIST,"Territorio","Em desenvolvimento","Pronto","Cancelar");
 }
 if(listitem ==2) {
 ShowPlayerDialog(playerid,2,DIALOG_STYLE_LIST,"Dinheiro","Em desenvolvimento","Pronto","Cancelar");
 }
 return 1;
}
Agora deu vбrios erros
Код:
C:\Users\Gil Henrique\Desktop\SAMP SERVER\gamemodes\teste.pwn(409) : error 017: undefined symbol "strtok"
C:\Users\Gil Henrique\Desktop\SAMP SERVER\gamemodes\teste.pwn(409) : error 033: array must be indexed (variable "cmd")
C:\Users\Gil Henrique\Desktop\SAMP SERVER\gamemodes\teste.pwn(408) : warning 203: symbol is never used: "idx"
C:\Users\Gil Henrique\Desktop\SAMP SERVER\gamemodes\teste.pwn(673) : error 079: inconsistent return types (array & non-array)
C:\Users\Gil Henrique\Desktop\SAMP SERVER\gamemodes\teste.pwn(689) : error 079: inconsistent return types (array & non-array)
C:\Users\Gil Henrique\Desktop\SAMP SERVER\gamemodes\teste.pwn(696) : error 029: invalid expression, assumed zero
C:\Users\Gil Henrique\Desktop\SAMP SERVER\gamemodes\teste.pwn(696) : error 004: function "portaofecharg" is not implemented
C:\Users\Gil Henrique\Desktop\SAMP SERVER\gamemodes\teste.pwn(699) : error 079: inconsistent return types (array & non-array)
C:\Users\Gil Henrique\Desktop\SAMP SERVER\gamemodes\teste.pwn(702) : warning 225: unreachable code
C:\Users\Gil Henrique\Desktop\SAMP SERVER\gamemodes\teste.pwn(702) : error 029: invalid expression, assumed zero
C:\Users\Gil Henrique\Desktop\SAMP SERVER\gamemodes\teste.pwn(702) : error 004: function "portaofecharcv" is not implemented
C:\Users\Gil Henrique\Desktop\SAMP SERVER\gamemodes\teste.pwn(705) : error 079: inconsistent return types (array & non-array)
C:\Users\Gil Henrique\Desktop\SAMP SERVER\gamemodes\teste.pwn(708) : warning 225: unreachable code
C:\Users\Gil Henrique\Desktop\SAMP SERVER\gamemodes\teste.pwn(708) : error 029: invalid expression, assumed zero
C:\Users\Gil Henrique\Desktop\SAMP SERVER\gamemodes\teste.pwn(708) : error 004: function "portaofechara" is not implemented
C:\Users\Gil Henrique\Desktop\SAMP SERVER\gamemodes\teste.pwn(711) : error 079: inconsistent return types (array & non-array)
C:\Users\Gil Henrique\Desktop\SAMP SERVER\gamemodes\teste.pwn(714) : warning 225: unreachable code
C:\Users\Gil Henrique\Desktop\SAMP SERVER\gamemodes\teste.pwn(714) : error 029: invalid expression, assumed zero
C:\Users\Gil Henrique\Desktop\SAMP SERVER\gamemodes\teste.pwn(714) : error 004: function "portaofecharv" is not implemented
C:\Users\Gil Henrique\Desktop\SAMP SERVER\gamemodes\teste.pwn(717) : error 079: inconsistent return types (array & non-array)
C:\Users\Gil Henrique\Desktop\SAMP SERVER\gamemodes\teste.pwn(720) : warning 225: unreachable code
C:\Users\Gil Henrique\Desktop\SAMP SERVER\gamemodes\teste.pwn(720) : error 029: invalid expression, assumed zero
C:\Users\Gil Henrique\Desktop\SAMP SERVER\gamemodes\teste.pwn(720) : error 004: function "portaofecharpm" is not implemented
C:\Users\Gil Henrique\Desktop\SAMP SERVER\gamemodes\teste.pwn(723) : error 079: inconsistent return types (array & non-array)
C:\Users\Gil Henrique\Desktop\SAMP SERVER\gamemodes\teste.pwn(728) : warning 225: unreachable code
C:\Users\Gil Henrique\Desktop\SAMP SERVER\gamemodes\teste.pwn(728) : error 017: undefined symbol "strtok"
C:\Users\Gil Henrique\Desktop\SAMP SERVER\gamemodes\teste.pwn(728) : error 029: invalid expression, assumed zero
C:\Users\Gil Henrique\Desktop\SAMP SERVER\gamemodes\teste.pwn(728) : error 017: undefined symbol "string"
C:\Users\Gil Henrique\Desktop\SAMP SERVER\gamemodes\teste.pwn(728) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


23 Errors.
Desde jб agradeзo pela ajuda!
PS: Nгo achei nada que me ajudase no Search "/
Reply


Messages In This Thread
[DUV] Dialog - by Gil_Henriquee - 24.05.2010, 01:44
Re: [DUV] Dialog - by SuB_ZeRo0_ - 24.05.2010, 01:48
Re: [DUV] Dialog - by Gil_Henriquee - 24.05.2010, 01:57
Re: [DUV] Dialog - by SuB_ZeRo0_ - 24.05.2010, 02:09
Re: [DUV] Dialog - by Gil_Henriquee - 24.05.2010, 02:17
Re: [DUV] Dialog - by SuB_ZeRo0_ - 24.05.2010, 02:20

Forum Jump:


Users browsing this thread: 1 Guest(s)