[Ajuda] Ajuda com ciclo if
#1

Boas, pessoal estou a tenta fazer um sistema de seleзгo de gкnero em textdraw ou seja masculino ou feminino. Portanto o sistema atualmente esta com problema de nгo estar a funcionar a 100 por cento, pois nгo estб a dar para mudar do feminino para o masculino. O problema esta neste ciclo if,que deve estar mal estruturado.


PHP код:
if(clickedid == gen1)
{
new 
String[128];
if (
PlayerInfo[playerid][Feminino] == 1)
{
format(Stringsizeof(String), "Masculino");
TextDrawSetString(gen1String);
PlayerInfo[playerid][Masculino] = 1;
}
else
format(Stringsizeof(String), "Feminino");
TextDrawSetString(gen1String);
PlayerInfo[playerid][Feminino] = 1;
}
else if(
clickedid == gen1)
{
new 
String[128];
if (
PlayerInfo[playerid][Masculino] == 1)//Mude o 'pInfo' para a do seu GameMod
{
format(Stringsizeof(String), "Feminino");
TextDrawSetString(gen1String);
PlayerInfo[playerid][Feminino] = 1;//variavel feminino
}
else
format(Stringsizeof(String), "Masculino");
TextDrawSetString(gen1String);
PlayerInfo[playerid][Masculino] = 1;//variavel masculino*/

Agradeзo a quem puder dar uma ajuda.
Reply


Messages In This Thread
Ajuda com ciclo if - by kapazul - 27.04.2014, 21:09
Re: Ajuda com ciclo if - by hard_dalzot - 27.04.2014, 21:46
Re: Ajuda com ciclo if - by kapazul - 27.04.2014, 22:35
Re: Ajuda com ciclo if - by hard_dalzot - 28.04.2014, 00:03
Re: Ajuda com ciclo if - by hard_dalzot - 28.04.2014, 00:07
Re: Ajuda com ciclo if - by kapazul - 30.04.2014, 16:03

Forum Jump:


Users browsing this thread: 2 Guest(s)