Can I define a string like this?
#9

If I were you, I would ditch the whole "girl" or "female" thing as it'll just be more of a pain in the ass to deal with. This is untested code, but I think it will work:

pawn Код:
stock returnPlayerGender(playerid)
{
    if(playerid != INVALID_PLAYER_ID)
    {
        new
            szGender[7];
       
        switch(Player[playerid][Gender])
        {
            case 2, 4: szGender = "Female";
            case 1, 3: szGender = "Male";
        }
    }
    else szGender = "N/A";
    return szGender;
}
Reply


Messages In This Thread
Can I define a string like this? - by Stefand - 09.05.2013, 20:27
Respuesta: Can I define a string like this? - by LoLeRo - 09.05.2013, 20:33
Re: Can I define a string like this? - by Scenario - 09.05.2013, 20:33
AW: Can I define a string like this? - by BigETI - 09.05.2013, 20:38
Re: Can I define a string like this? - by IceCube! - 09.05.2013, 20:44
Re: Can I define a string like this? - by Vince - 09.05.2013, 20:54
Re: Can I define a string like this? - by Stefand - 09.05.2013, 21:25
Respuesta: Can I define a string like this? - by LoLeRo - 09.05.2013, 21:28
Re: Can I define a string like this? - by Scenario - 09.05.2013, 21:29
Re: Can I define a string like this? - by Stefand - 09.05.2013, 21:52

Forum Jump:


Users browsing this thread: 2 Guest(s)