When player use List dialog they die..
#1

This is a strange bug. It does not always happen.

In some time player select the list item they will die.

pawn Код:
if(dialogid == FillSex_dialog)
    {
        if(response)
        {
            if(listitem == 0)
            {
                OnPlayerText(playerid,"Male");
            }
            if(listitem == 1)
            {
                OnPlayerText(playerid,"Female");
            }
        }
        else
        {
            RegistrationStep[playerid] = 1;
        }
    }



        else if(RegistrationStep[playerid] == 2)
        {
            new idx;
            tmp = strtok(text, idx);
            if((strcmp("male", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("male")))
            {
                PlayerInfo[playerid][pSex] = 1;
                RegistrationStep[playerid] = 3;
                SetPlayerSkin(playerid, 291);
                PlayerInfo[playerid][pModel] = 219;
                return 0;
            }
            else if((strcmp("female", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("female")))
            {
                PlayerInfo[playerid][pSex] = 2;
                RegistrationStep[playerid] = 3;
                SetPlayerSkin(playerid, 226);
                PlayerInfo[playerid][pModel] = 226;
               
                return 0;
            }
            else
            {
             
            }
            return 0;
        }
Reply
#2

lolwhut. OnPlayerText(playerid, "Male");?

More like SendClientMessage
Reply
#3

Quote:
Originally Posted by Retardedwolf
Посмотреть сообщение
lolwhut. OnPlayerText(playerid, "Male");?

More like SendClientMessage
When FillSex_dialog show. player is registering.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)