YOU CAN FORE SURE..
#8

What the fuck?
pawn Код:
if((strcmp("male", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("male")))
        {//Checks to see if the input matches "male" and if it does continues
            PlayerInfo[playerid][pSex] = 1;
            SendClientMessage(playerid,LIGHTBLUE,"Ok, so you are a Male.");
            SendClientMessage(playerid,WHITE,"Thank you for filling in the information");
            TogglePlayerControllable(playerid,0);//Unfreezes the player and play resumes
            return 0;
        }
        else if((strcmp("female", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("female")))
        {//Checks to see if the input matches "female" and if it does continues
            PlayerInfo[playerid][pSex] = 2;
            SendClientMessage(playerid,LIGHTBLUE,"Ok, so you are a Female.");
            SendClientMessage(playerid,WHITE,"Thank you for filling in the information");
            TogglePlayerControllable(playerid,0);//Unfreezes the player and play resumes
            return 0;
        }
Do this
pawn Код:
if(!strcmp("male", tmp, true, 4))
        {//Checks to see if the input matches "male" and if it does continues
            PlayerInfo[playerid][pSex] = 1;
            SendClientMessage(playerid,LIGHTBLUE,"Ok, so you are a Male.");
            SendClientMessage(playerid,WHITE,"Thank you for filling in the information");
            TogglePlayerControllable(playerid,0);//Unfreezes the player and play resumes
            return 0;
        }
        else if(!strcmp("female", tmp, true, 6))
        {//Checks to see if the input matches "female" and if it does continues
            PlayerInfo[playerid][pSex] = 2;
            SendClientMessage(playerid,LIGHTBLUE,"Ok, so you are a Female.");
            SendClientMessage(playerid,WHITE,"Thank you for filling in the information");
            TogglePlayerControllable(playerid,0);//Unfreezes the player and play resumes
            return 0;
        }
        else
        { SendClientMessage(playerid,WHITE,"Wrong answer!"); return 0; }
This will work for sure.
Reply


Messages In This Thread
YOU CAN FORE SURE.. - by ukraine1594 - 09.12.2010, 21:01
Re: please help!!! :( - by admantis - 09.12.2010, 21:05
AW: YOU CAN FORE SURE.. - by ukraine1594 - 09.12.2010, 21:08
Re: YOU CAN FORE SURE.. - by admantis - 09.12.2010, 21:12
AW: Re: YOU CAN FORE SURE.. - by ukraine1594 - 09.12.2010, 21:13
Re: YOU CAN FORE SURE.. - by admantis - 09.12.2010, 21:16
AW: Re: YOU CAN FORE SURE.. - by ukraine1594 - 09.12.2010, 21:19
Re: YOU CAN FORE SURE.. - by wups - 09.12.2010, 21:20
AW: YOU CAN FORE SURE.. - by ukraine1594 - 09.12.2010, 21:48
Re: YOU CAN FORE SURE.. - by wups - 10.12.2010, 07:06

Forum Jump:


Users browsing this thread: 2 Guest(s)