SA-MP Forums Archive
Is this right? - 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)
+--- Thread: Is this right? (/showthread.php?tid=425201)



Is this right? - LeeXian99 - 25.03.2013

Well, just implementing VIP system, just a question, is this right?

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(response)
    {
    switch(dialogid)
        {
            case 9001:
            {
                if(strlen(inputtext) > 0)
                {
                    new name[MAX_PLAYER_NAME], string[128];
                    GetPlayerName(playerid, name, sizeof(name));
                    format(string, sizeof(string), "VIP %s shouted: %s", name, inputtext);
                }
                else
                {
                    SendClientMessage(playerid, 0xFF000000, "Your shout needs to be more than 0 character!");
                }
            }
        }
    }
    return 1;
}



Re: Is this right? - Joao Pedro - 25.03.2013

apparently, ya


Re: Is this right? - LeeXian99 - 25.03.2013

Alright, thanks.