Can I define a string like this?
#1

I made a Gender in my player saving data, which saves: "Girl" "Female" "Boy" or "Male"

Can I use this?

pawn Код:
stock SexGender(playerid)
{
    new Sex2[128];

    if(IsPlayerConnected(playerid))
    {
        if(Player[playerid][Gender] == "Female" || "Girl")
        {
            Sex2 = "her";
        }
        else
        {
            Sex2 = "his";
        }
    }
    else
    {
        Sex2 = "Disconnected/Nothing";
    }

    return Sex2;
}
or do i have to define this different?
pawn Код:
if(Player[playerid][Gender] == "Female" || "Girl")
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)