SA-MP Forums Archive
Plate Car MAX 6 CHARACTER] - 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: Plate Car MAX 6 CHARACTER] (/showthread.php?tid=465615)



Plate Car [MAX 6 CHARACTER] HELPPPPPPPPPPPPPPPPPPP - Andrei04072 - 23.09.2013

How can I make more than 6 can put the license plate chargers?

PHP код:
if(dialogid == TABLICEBR)
{
    if(
response)
    {
        if(
IsNumeric(inputtext))
        {
            new 
IDVozila strval(inputtext);
            if (
IDVozila != PlayerInfo[playerid][pPcarkey] && IDVozila != PlayerInfo[playerid][pPcarkey2] && IDVozila != PlayerInfo[playerid][pPcarkey3])
            {
SendClientMessageplayeridCOLOR_GRAD1"[Greseala] Nu se poate schimba placutele de inmatriculare !!!" );return 1;}
            new 
clickstring[300];
            new 
msgbox[300];
            
msgbox="\nIntroduceti noile numere de оnmatriculare : ";
            
format(clickstring,sizeof clickstring,msgbox);
            
PlayerInfo[playerid][pNovatablica] = IDVozila;
            
ShowPlayerDialog(playerid,TABLICEBRPROMENI,DIALOG_STYLE_INPUT,"Modidicarea numarului de inmatriculare{FF0033}[MAX 6 sloturi]",clickstring,"Schimba","Anuleaza");
        }
        else
        {
        
SendClientMessageplayeridCOLOR_GRAD1"[Greseala]Trebuie sa utilizati numerele!" );
        return 
1;
        }
    }
return 
1;




Re: Plate Car MAX 6 CHARACTER] - DanishHaq - 23.09.2013

if(IDVozila < 1 || IDVozila > 6) return SendClientMessage, COLOR_GRAD1, "[GRESEALA] Plate trebuie minim de 1 character iar maxim de 6.");


Re: Plate Car MAX 6 CHARACTER] - Dragony92 - 23.09.2013

Show us TABLICEBRPROMENI dialog.


Re: Plate Car MAX 6 CHARACTER] - DanishHaq - 23.09.2013

Quote:
Originally Posted by Dragony92
Посмотреть сообщение
Show us TABLICEBRPROMENI dialog.
You don't need to see that dialog because the dialog response is the one that he has posted above.


Re: Plate Car MAX 6 CHARACTER] - Andrei04072 - 23.09.2013

finish thankyou