Need a hand guys
#4

Quote:
Originally Posted by kujox222
Посмотреть сообщение
pawn Код:
stock GetPlayerGender(playerid)
{
    // you could use an array but I am not sure which numbers you assigned to "Male" and "Female"
        switch(pInfo[playerid][Gender])
        case 1: return "Male";
        case 2: return "Female";
    }
    return 1;
}
Crashes Pawno. The the assigned numbers are 1 and 2 in the #define area, also I rather prefer dini I don't know why. It already has a Male and Female area in connect. Thats not the issue. The issue is that it ignores the M in Male and am sure it will ignore the Fe in Female.
I thought it was possible to return plain strings :/, hope thats better
pawn Код:
stock GetPlayerGender(playerid) {
    new
        text[8] = "Hybrid"
    ;
    switch(pInfo[playerid][Gender]) {
        case Male: text = "Male";
        case Female: text = "Female";
    }
    return text;
}
Reply


Messages In This Thread
Need a hand guys - by kujox222 - 17.06.2012, 09:29
AW: Need a hand guys - by Nero_3D - 17.06.2012, 09:46
Re: AW: Need a hand guys - by kujox222 - 17.06.2012, 09:59
AW: Re: AW: Need a hand guys - by Nero_3D - 17.06.2012, 10:27
Re: Need a hand guys - by Revo - 17.06.2012, 10:37
Re: AW: Re: AW: Need a hand guys - by kujox222 - 17.06.2012, 10:40

Forum Jump:


Users browsing this thread: 1 Guest(s)