double errors
#3

PHP код:
CMD:ticket(playeridparams[])
{
    new 
amendatgiveplayeridstring[256], sendername[MAX_PLAYER_NAME], giveplayermoneysresult;
     if(
sscanf(params"u"amendat)) return SendClientMessage(playeridCOLOR_GRAD2"{00FF00}Folosire:{FFFFFF} /ticket[PlayerID/PartOfName]");
      if(
IsPlayerConnected(playerid))
       {
           if(!
IsACop(playerid))
        {
              
SendClientMessage(playeridCOLOR_GREY"   Nu esti politist!");
            return 
1;
        }
          if(
OnDuty[playerid] != && PlayerInfo[playerid][pMember] == 1)
        {
              
SendClientMessage(playeridCOLOR_GREY"   Nu esti la datorie!");
               return 
1;
        }
        if(
IsPlayerConnected(giveplayerid))
        {
              if(
giveplayerid != INVALID_PLAYER_ID)
            {
                if(
PlayerInfo[giveplayerid][pLevel] < 2) return SendClientMessage(playeridCOLOR_WHITE"{0066FF}Ticket: {FFFFFF}Nu poti da amenda jucatorilor cu level 1!");
                
format(stringsizeof(string), "* You gave %s a Ticket costing $%d, reason: %s"giveplayermoneys, (result));
                
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
                
format(stringsizeof(string), "* Offiterul %s ti-a dat o amenda in valoare de $%d, motiv: %s"sendernamemoneys, (result));
                
SendClientMessage(giveplayeridCOLOR_LIGHTBLUEstring);
                
SendClientMessage(giveplayeridCOLOR_LIGHTBLUE"* Scrie /accept ticket, pentru a plati amenda.");
                
TicketOffer[giveplayerid] = playerid;
                
TicketMoney[giveplayerid] = moneys;
                return 
1;
            }
            else
            {
                
SendClientMessage(playeridCOLOR_GREY"   Acel jucator nu este langa tine !");
                return 
1;
            }
        }
    }
    else
    {
         
SendClientMessage(playeridCOLOR_GREY"   Acel jucator este offline !");
           return 
1;
    }
    new 
string[1000];
    
strcat(string,"1. Folosire telefon la volan -> 5.000$ amenda\n2. Condus fara centura -> 10.000$ amenda\3. Oprire/Stationare/Parcare Neregulamentara -> 10.000$ amenda\n");
    
strcat(string,"4. Condus neregulamentar (contra-sens, etc.) -> Suspendarea permisului + 25.000$ amenda\n5. Conducerea vehiculelor cu roti sparte -> 10.000$ amenda\n6. Folosire NOS -> Suspendarea permisului + 10.000$ amenda\n");
    
strcat(string,"7. Folosire Hidraulice -> Suspendarea permisului + 10.000$ amenda\n8. Faruri stinse (headlights off) (pe timpul noptii, dupa ora 21:00) -> 10.000$ amenda\n");
    
strcat(string,"9. Condus sub influenta alcoolului -> Suspendarea permisului + 20.000$ amenda\n10. Depasirea limitei de viteza cu:\n-> 10 - 50 km/h ->  10.000$ amenda\n");
    
strcat(string,"-> 50+ km/h      -> Suspendarea permisului de conducere + 20.000$");
    
ShowPlayerDialog(917DIALOG_AMENDADIALOG_STYLE_LIST"Selecteaza amenda:"string"Select""Close");
    return 
1;

Reply


Messages In This Thread
double errors - by Jimmi - 31.08.2015, 09:05
Re: double errors - by LetsOWN[PL] - 31.08.2015, 09:17
Re: double errors - by MarvinPWN - 31.08.2015, 11:30

Forum Jump:


Users browsing this thread: 1 Guest(s)