05.06.2016, 21:06
Quote:
Olб novamente, eu estou criando um sisteminha, sу que eu estou com outro problema, quando eu uso os comandos e salvo a aparкncia, quando eu vou testar nгo tб salvando nome exatamente.
Cуdigo: Код:
Dialog:Etnia(playerid, response, listitem, inputtext[]) { new Etnia[20]; if (response) { switch (listitem) { case 0: { if(PlayerData[playerid][pEtnia] == 0) return Etnia = "Caucasiano"; SendClientMessage(playerid, COLOR_GREEN, "Vocк modificou sua etnia para Caucasiano."); } case 1: { if(PlayerData[playerid][pEtnia] == 0) return Etnia = "Afro-americano"; SendClientMessage(playerid, COLOR_GREEN, "Vocк modificou sua etnia para Afro-americano."); } case 2: { if(PlayerData[playerid][pEtnia] == 0) return Etnia = "Latino-americano"; SendClientMessage(playerid, COLOR_GREEN, "Vocк modificou sua etnia para Latino-americano."); } case 3: { if(PlayerData[playerid][pEtnia] == 0) return Etnia = "Asiatico"; SendClientMessage(playerid, COLOR_GREEN, "Vocк modificou sua etnia para Asiбtico."); } case 4: { if(PlayerData[playerid][pEtnia] == 0) return Etnia = "Desconhecida"; SendClientMessage(playerid, COLOR_GREEN, "Vocк modificou sua etnia para Desconhecida."); } } } return 1; } Код:
PlayerData[playerid][pEtnia] = Caucasiano; |
Quote:
Eu tentei fazer assim: Код:
PlayerData[playerid][pEtnia] = Caucasiano; |
PHP код:
PlayerData[playerid][pEtnia] = "Caucasiano";
PHP код:
format(PlayerData[playerid][pEtnia], 11, "Caucasiano");