Plate Car MAX 6 CHARACTER]
#1

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;

Reply
#2

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

Show us TABLICEBRPROMENI dialog.
Reply
#4

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.
Reply
#5

finish thankyou
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)