SA-MP Forums Archive
When player use List dialog they die.. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: When player use List dialog they die.. (/showthread.php?tid=179505)



When player use List dialog they die.. - billy4601 - 27.09.2010

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;
        }



Re: When player use List dialog they die.. - Retardedwolf - 27.09.2010

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

More like SendClientMessage


Re: When player use List dialog they die.. - billy4601 - 27.09.2010

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

More like SendClientMessage
When FillSex_dialog show. player is registering.