25.07.2013, 17:05
pawn Код:
#define DIALOG_TextDraw 8
pawn Код:
if(strcmp("/textdraws",cmd, true)== 0)
{
new string[228];
strcat(string,"{FF0000}***Ativar*** - {FFFFFF}Textdraw 1\n{FF0000}***Ativar*** - {FFFFFF}Textdraw 1\n");
ShowPlayerDialog(playerid, DIALOG_TextDraw, DIALOG_STYLE_LIST,"TextDraws [TBD].",string,"Entrar","Sair");
return 1;
}
pawn Код:
if(dialogid == DIALOG_TextDraw) {
if(!response) return SendClientMessage(playerid,-1,"Cancelado com sucesso!");
if(listitem == 0) {
if(Textdraw1 = 0)
TextDrawShowForPlayer(playerid, Textdraw1);
}
else if(Textdraw1 = 1)
{
new string[228];
strcat(string,"{FF0000}***Desativar*** - {FFFFFF}Textdraw 1\n{FF0000}***Ativar*** - {FFFFFF}Textdraw 1\n");
ShowPlayerDialog(playerid, DIALOG_TextDraw, DIALOG_STYLE_LIST,"TextDraws [TBD].",string,"Entrar","Sair");
TextDrawHideForPlayer(playerid, Textdraw1);
}
return 1;
}
pawn Код:
C:\Users\Dragon\Desktop\Server\gamemodes\TBDa.pwn(9717) : warning 211: possibly unintended assignment
C:\Users\Dragon\Desktop\Server\gamemodes\TBDa.pwn(9717) : warning 213: tag mismatch
C:\Users\Dragon\Desktop\Server\gamemodes\TBDa.pwn(9720) : warning 211: possibly unintended assignment
C:\Users\Dragon\Desktop\Server\gamemodes\TBDa.pwn(9720) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Warnings.