SA-MP Forums Archive
[AJUDA] problema com tuto - 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] problema com tuto (/showthread.php?tid=168377)



[AJUDA] problema com tuto - brundavid - 16.08.2010

quando se responde as perguntas de registro e tals ex : homem ou mulher... ai vem a mensagem obrigado pelas respostas agra o tutorial ira comeзar , so que nao ta comeзando o tuto . urgente


Re: [AJUDA] problema com tuto - Gil_Henriquee - 16.08.2010

E vocк acha que nуs somos videntes!?!?

Poste no mнnimo o seu cуdigo!!!!


Re: [AJUDA] problema com tuto - LeLeTe - 16.08.2010

... sem o cуdigo, fica meio difнcil.

No fim do registro, tente adicionar isso:


RegistrationStep[playerid] = 0;
TutTime[playerid] = 1;


Re: [AJUDA] problema com tuto - brundavid - 16.08.2010

que codigo eu iria pega ?


Re: [AJUDA] problema com tuto - brundavid - 16.08.2010

if(RegistrationStep[playerid] > 0)
{
if(RegistrationStep[playerid] == 1)
{
new idx;
tmp = strtok(text, idx);
if((strcmp("homem", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Homem")))
{
PlayerInfo[playerid][pSex] = 1;
SetPlayerSkin(playerid, 23);
PlayerInfo[playerid][pModel] = 23;
SendClientMessage(playerid, COLOR_YELLOW2, "Ok, Voce й Homem!.");
SendClientMessage(playerid, COLOR_LIGHTRED, "Qual sua origem? (Digite: Hospital, Estacao ou Prefeitura");
RegistrationStep[playerid] = 2;
return 0;
}
else if((strcmp("mulher", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Mulher")))
{
PlayerInfo[playerid][pSex] = 2;
SetPlayerSkin(playerid, 193);
PlayerInfo[playerid][pModel] = 193;
SendClientMessage(playerid, COLOR_YELLOW2, "Ok, Vocк й uma Mulher");
SendClientMessage(playerid, COLOR_LIGHTRED, "Qual sua origem? (Digite: Hospital, Estacao ou Prefeitura");
RegistrationStep[playerid] = 2;
return 0;
}
else
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк й 'Homem' ou 'Mulher' (Digite).");
}
return 0;
}
else if(RegistrationStep[playerid] == 2)
{
new idx;
tmp = strtok(text, idx);
if((strcmp("Hospital", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("hospital")))
{
PlayerInfo[playerid][pOrigem] = 1;
SendClientMessage(playerid, COLOR_YELLOW2, "Ok, Vocк nasceu perto do Hospital.");
SendClientMessage(playerid, COLOR_LIGHTRED, "Obrigado pelas respostas !, Siga o tutorial");
RegistrationStep[playerid] = 0;
TutTime[playerid] = 1;
return 0;
}
else if((strcmp("Estacao", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Estacao")))
{
PlayerInfo[playerid][pOrigem] = 2;
SendClientMessage(playerid, COLOR_YELLOW2, "Ok, Voce й da Estaзгo.");
SendClientMessage(playerid, COLOR_LIGHTRED, "Obrigado pelas respostas !, Siga o tutorial");
RegistrationStep[playerid] = 0;
TutTime[playerid] = 1;
return 0;
}
else if((strcmp("prefeitura", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Prefeitura")))
{
PlayerInfo[playerid][pOrigem] = 3;
SendClientMessage(playerid, COLOR_YELLOW2, "Ok, vocк й da Prefeitura!.");
SendClientMessage(playerid, COLOR_LIGHTRED, "Obrigado pelas respostas !, Siga o tutorial");
RegistrationStep[playerid] = 0;
TutTime[playerid] = 1;
return 0;
}
else
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Qual sua origem? (Digite: Hospital, Estacao ou Prefeitura)");
}
return 0;
}
return 0;
}
se fo esse ja tem o tutTime e o registration mesmo assim nao comeзa


Re: [AJUDA] problema com tuto - Canabis - 16.08.2010

posta o gm inteiro...


Re: [AJUDA] problema com tuto - Macintosh - 16.08.2010

Quote:
Originally Posted by Canabis
Посмотреть сообщение
posta o gm inteiro...
kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk