
public OnPlayerEnterCheckpoint(playerid)
{
if(CPS_IsPlayerInCheckpoint(playerid, cpgroove))
{
SendClientMessage(playerid, AZUL, "Selecione os seus equipamentos");
ShowPlayerDialog(playerid,DIALOG_1,DIALOG_STYLE_LIST,"Selecione o que vocк deseja","Armas \nVida \nColete","Pronto","Cancelar");
}
if(CPS_IsPlayerInCheckpoint(playerid, cpaztecas))
{
SendClientMessage(playerid, AZUL, "Selecione os seus equipamentos");
ShowPlayerDialog(playerid,DIALOG_1,DIALOG_STYLE_LIST,"Selecione o que vocк deseja","Armas \nVida \nColete","Pronto","Cancelar");
}
if(CPS_IsPlayerInCheckpoint(playerid, cpvagos))
{
SendClientMessage(playerid, AZUL, "Selecione os seus equipamentos");
ShowPlayerDialog(playerid,DIALOG_1,DIALOG_STYLE_LIST,"Selecione o que vocк deseja","Armas \nVida \nColete","Pronto","Cancelar");
}
if(CPS_IsPlayerInCheckpoint(playerid, cpcv))
{
SendClientMessage(playerid, AZUL, "Selecione os seus equipamentos");
ShowPlayerDialog(playerid,DIALOG_1,DIALOG_STYLE_LIST,"Selecione o que vocк deseja","Armas \nVida \nColete","Pronto","Cancelar");
}
if(CPS_IsPlayerInCheckpoint(playerid, cppm))
{
SendClientMessage(playerid, AZUL, "Selecione os seus equipamentos");
ShowPlayerDialog(playerid,DIALOG_1,DIALOG_STYLE_LIST,"Selecione o que vocк deseja","Armas \nVida \nColete","Pronto","Cancelar");
}
return 1;
}
if(strcmp(cmd, "/ajuda", true) == 0)
{
ShowPlayerDialog(playerid,DIALOG_2,DIALOG_STYLE_LIST,"Ajuda","Comandos \nTerritуrio \nDinheiro","Confirmar","Cancelar");
}
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);
}
}
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");
}
}

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;
}
|
Originally Posted by SuB_ZeRo0_
Tenta isso:
pawn Код:
|

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.
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;
}
return 0;
}
|
Originally Posted by SuB_ZeRo0_
Tenta isso:
pawn Код:
|

(se nгo quiser passar eu entendendo
)
|
Originally Posted by Gil_Henriquee
Funcionooooooooooou!!!!
Muito Obrigado ![]() Tem Skype ou MSN para que eu possa adicionar e tirar algumas dъvidas quando tiver (se nгo quiser passar eu entendendo ) |
