SA-MP Forums Archive
[Ajuda] erros no dialog! -.- - 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: [Ajuda] erros no dialog! -.- (/showthread.php?tid=536752)



erros no dialog! -.- - best95 - 11.09.2014

dialog que esta dando os erros
sгo varios desses erros abaixo...eu ja tive se problema so nгo lembro como que resolve!

pawn Код:
if(dialogid == MudarPlaca)
    {
        if(response)
        {
            new Float:angle;
            if(strlen(inputtext) < 3 || strlen(inputtext) > 8) return SendClientMessage(playerid, 0xAFAFAFAA, "Minimo 3 caracteres maximo 8 caracteres.");
            else
            {
            new string[900];
            format(string, sizeof(string), "Vocк mudou sua placa para '%s'.", inputtext);
            SendClientMessage(playerid, CorServer, string);
            GetPlayerPos(playerid, X, Y, Z);
            GetPlayerFacingAngle(playerid, angle);
            SetVehicleNumberPlate(GetPlayerVehicleID(playerid), inputtext);
            SetVehicleToRespawn(GetPlayerVehicleID(playerid));
            GetPlayerPos(playerid, X, Y, Z);
            SetVehiclePos(GetPlayerVehicleID(playerid), X, Y, Z);
            SetVehicleZAngle(GetPlayerVehicleID(playerid), angle);
            PutPlayerInVehicle(playerid, GetPlayerVehicleID(playerid), 0);
            SetVehiclePos(GetPlayerVehicleID(playerid), X, Y, Z+2);
            }
        }
    }
ERRO:
pawn Код:
(1773) : error 017: undefined symbol "Nome"



Re: erros no dialog! -.- - MultiKill - 11.09.2014

O simbolo Nome nгo foi definido.


Re: erros no dialog! -.- - ArthurxD - 11.09.2014

Cria a variavel Nome '-'

pawn Код:
new Nome[MAX_PLAYER_NAME];



Re: erros no dialog! -.- - best95 - 11.09.2014

Nгo e a variavel,nгo entendi multikill aonde no codigo isso? nгo sou muito experiente em dialogs....

pawn Код:
for(;;)
    print("Loop infinita");



Re: erros no dialog! -.- - ArthurxD - 11.09.2014

CRIA ESSA VARIБVEL NO TOPO DO GM CARA.


Re: erros no dialog! -.- - best95 - 11.09.2014

eu ja criei cara e nгo e isso..pois uso outras dialogs e nгo da esse mesmo erro -.- da mais erros ainda... falei acima que nгo й...


Re: erros no dialog! -.- - best95 - 11.09.2014

Criei so pra vc ver erro!!

Variavel criada
pawn Код:
new Nome[MAX_PLAYER_NAME];
pawn Код:
format(String, 60, "ContasBanidas/%s.ini", Nome(playerid));// Formata a pasta!



Re: erros no dialog! -.- - ArthurxD - 11.09.2014

Troca esse "Nome(playerid)" por apenas "Nome"


Re: erros no dialog! -.- - best95 - 11.09.2014

Vou ter que mudar de um monte de linhas que eu uso (playerid) e Nome(playerid) -.-


Re: erros no dialog! -.- - MultiKill - 11.09.2014

pawn Код:
stock Nome(id)
{
    new nome[25];
    GetPlayerName(id, nome, 24);
    return nome;
}