SA-MP Forums Archive
What's wrong - 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: What's wrong (/showthread.php?tid=320771)



What's wrong - boyan96 - 24.02.2012

PHP код:
if (strcmp(cmdtext"/takeneon"true)==0)
    {
    if(
IsPlayerInRangeOfPoint(playerid4.02750.89062500,-1098.28222656,70.82879639))
    {
    if(
IsPlayerInAnyVehicle(playerid))
    {
    
ShowPlayerDialog(playeridneondialogDIALOG_STYLE_LIST"Neon Shop ""DarkBlue\nRed\nGreen\nWhite\nViolet\nYellow\nCyan\nLightBlue\nPink\nOrange\nLightGreen\nLightYellow\nDelete Neon""Избор""Изход");
    }
    return 
1;
    } 



Re: What's wrong - Konstantinos - 24.02.2012

Does the dialog appear?
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp(cmdtext, "/takeneon", true)==0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 4.0, 2750.89062500,-1098.28222656,70.82879639))
        {
            if(IsPlayerInAnyVehicle(playerid))
            {
                ShowPlayerDialog(playerid, neondialog, DIALOG_STYLE_LIST, "Neon Shop ", "DarkBlue\nRed\nGreen\nWhite\nViolet\nYellow\nCyan\nLightBlue\nPink\nOrange\nLightGreen\nLightYellow\nDelete Neon", "?????", "?????");
                return 1;
            }
        }
    }
    return 0;
}