error fs
#4

PHP код:
    if (strcmp("/buylevel"cmdtexttrue) == 0)
    {
        if(
GetPlayerScore(playerid)==0)
        {
            if(
GetPlayerMoney(playerid) < 1000000)//
            
{
                
SendClientMessage(playerid0xE6000033"Jums nav pietiekami daudz naudas, lai nopirktu 1. li-meni!");
            }
            else
            {
                
SetPlayerScore(playerid1);
                
GivePlayerMoney(playerid, -1000000);//
                
SendClientMessage(playerid0x33AA33AA"Apsveicam! Ju-s iega-da-ja-ties 1. Li-meni. Tagad jums ir iespe-ja lietot /repair, lai salabotu mas(i-nu nekur nebraucot!");
            }
            return 
1;
        }
//2.lvl
        
if(GetPlayerScore(playerid)==1)
        {
            if(
GetPlayerMoney(playerid) < 2000000)//Nauda
            
{
                
SendClientMessage(playerid0xE6000033"Jums nav pietiekami daudz naudas, lai nopirktu 2. līmeni!");
            }
             else
            {
                
SetPlayerScore(playerid2);
                
GivePlayerMoney(playerid, -2000000);//Nauda.....
                
SendClientMessage(playerid0x33AA33AA"Apsveicam! Jūs iegādājāties 2. Līmeni. Tagad jums ir iespēja lietot /flip komandu!");
            }
            return 
1;
        }
//3.lvl
          
if(GetPlayerScore(playerid)==2)
        {
             if(
GetPlayerMoney(playerid) < 3000000)
            {
                   
SendClientMessage(playerid0xE6000033"Jums nav pietiekami daudz naudas, lai nopirktu 3. līmeni!");
            }
            else
               {
                
SetPlayerScore(playerid3);
                
GivePlayerMoney(playerid, -3000000);
                
SendClientMessage(playerid0x33AA33AA"Apsveicam! Jūs iegādājāties 3. Līmeni. Tagad jums ir iespēja lietot /lock un /unlock komandu, lai aizslēgtu un atslēgtu maљīnu!");
            }
            return 
1;
        }
//4.lvl
        
if(GetPlayerScore(playerid)==3)
           {
             if(
GetPlayerMoney(playerid) < 4)
            {
                   
SendClientMessage(playerid0xE6000033"Jums nav pietiekami daudz naudas, lai nopirktu 4. līmeni!");
            }
            else
               {
                
SetPlayerScore(playerid4);
                
GivePlayerMoney(playerid, -4);
                
SendClientMessage(playerid0x33AA33AA"Apsveicam! Jūs iegādājāties 4. Līmeni. Tagad jums ir iespēja lietot /savecar un /getcar komandu, lai izsauktu jūsu saglabāto maљīnu!");
            }
            return 
1;
        }
//5.lvl
        
if(GetPlayerScore(playerid)==4)
          {
             if(
GetPlayerMoney(playerid) < 5)
            {
                   
SendClientMessage(playerid0xE6000033"Jums nav pietiekami daudz naudas, lai nopirktu 5. līmeni!");
            }
            else
               {
                
SetPlayerScore(playerid5);
                
GivePlayerMoney(playerid, -5);
                
SendClientMessage(playerid0x33AA33AA"Apsveicam! Jūs iegādājāties 5. Līmeni. Tagad jums ir iespēja lietot /tune komandu, lai uztūnētu maљīnu nekur nebraucot!");
            }
            return 
1;
        }
//6.lvl
        
if(GetPlayerScore(playerid)==5)
          {
             if(
GetPlayerMoney(playerid) < 6)
            {
                   
SendClientMessage(playerid0xE6000033"Jums nav pietiekami daudz naudas, lai nopirktu 6. līmeni!");
            }
            else
               {
                
SetPlayerScore(playerid6);
                
GivePlayerMoney(playerid, -6);
                
SendClientMessage(playerid0x33AA33AA"Apsveicam! Jūs iegādājāties 6. Līmeni. Tagad jums ir iespēja lietot /afon un /afoff komandu, lai ieslēgtu un izslēgtu antifall!");
            }
            return 
1;
        }
//7.lvl
        
if(GetPlayerScore(playerid)==6)
          {
             if(
GetPlayerMoney(playerid) < 7)
            {
                   
SendClientMessage(playerid0xE6000033"Jums nav pietiekami daudz naudas, lai nopirktu 7. līmeni!");
            }
            else
               {
                
SetPlayerScore(playerid7);
                
GivePlayerMoney(playerid, -7);
                
SendClientMessage(playerid0x33AA33AA"Apsveicam! Jūs iegādājāties 7. Līmeni. Tagad jums ir iespēja lietot /count komandu, lai ieslēgtu laika atskaiti!");
            }
            return 
1;
        }
//8.lvl
        
if(GetPlayerScore(playerid)==7)
          {
             if(
GetPlayerMoney(playerid) < 8)
            {
                   
SendClientMessage(playerid0xE6000033"Jums nav pietiekami daudz naudas, lai nopirktu 8. līmeni!");
            }
            else
               {
                
SetPlayerScore(playerid8);
                
GivePlayerMoney(playerid, -8);
                
SendClientMessage(playerid0x33AA33AA"Apsveicam! Jūs iegādājāties 8. Līmeni. Tagad jums nospawnojoties būs bruņas!");
            }
            return 
1;
        }
//9.lvl
        
if(GetPlayerScore(playerid)==8)
          {
             if(
GetPlayerMoney(playerid) < 9)
            {
                   
SendClientMessage(playerid0xE6000033"Jums nav pietiekami daudz naudas, lai nopirktu 9. līmeni!");
            }
            else
               {
                
SetPlayerScore(playerid9);
                
GivePlayerMoney(playerid, -9);
                
SendClientMessage(playerid0x33AA33AA"Apsveicam! Jūs iegādājāties 9. Līmeni. Tagad jums ir iespēja lietot /parachute komandu, lai paņemtu izpletni!");
            }
            return 
1;
        }
//10.lvl
        
if(GetPlayerScore(playerid)==9)
          {
             if(
GetPlayerMoney(playerid) < 10)
            {
                   
SendClientMessage(playerid0xE6000033"Jums nav pietiekami daudz naudas, lai nopirktu 10. līmeni!");
            }
            else
               {
                
SetPlayerScore(playerid10);
                
GivePlayerMoney(playerid, -10);
                
SendClientMessage(playerid0x33AA33AA"Apsveicam! Jūs iegādājāties 10. Līmeni. Tagad jums ir iespēja lietot /neons komandu, lai ievietotu maљīnā neonus!");
            }
            return 
1;
        }
//11.lvl
        
if(GetPlayerScore(playerid)==10)
          {
             if(
GetPlayerMoney(playerid) < 11)
             {
                      
SendClientMessage(playerid0xE6000033"Jums nav pietiekami daudz naudas, lai nopirktu 10. līmeni!");
            }
            else
            {
                
SetPlayerScore(playerid11);
                
GivePlayerMoney(playerid, -10);
                
SendClientMessage(playerid0x33AA33AA"Apsveicam! Jūs iegādājāties 10. Līmeni. Tagad jums ir iespēja lietot /neons komandu, lai ievietotu maљīnā neonus!");
            }
            return 
1;
        }
//12.lvl
        
if(GetPlayerScore(playerid)==11)
          {
             if(
GetPlayerMoney(playerid) < 12)
            {
                   
SendClientMessage(playerid0xE6000033"Jums nav pietiekami daudz naudas, lai nopirktu 9. līmeni!");
            }
            else
               {
                
SetPlayerScore(playerid12);
                
GivePlayerMoney(playerid, -12);
                
SendClientMessage(playerid0x33AA33AA"Apsveicam! Jūs iegādājāties 9. Līmeni. Tagad jums ir iespēja lietot /parachute komandu, lai paņemtu izpletni!");
            }
            return 
1;
        }
//13.lvl
        
if(GetPlayerScore(playerid)==12)
          {
             if(
GetPlayerMoney(playerid) < 13)
            {
                   
SendClientMessage(playerid0xE6000033"Jums nav pietiekami daudz naudas, lai nopirktu 9. līmeni!");
            }
            else
               {
                
SetPlayerScore(playerid13);
                
GivePlayerMoney(playerid, -13);
                
SendClientMessage(playerid0x33AA33AA"Apsveicam! Jūs iegādājāties 9. Līmeni. Tagad jums ir iespēja lietot /parachute komandu, lai paņemtu izpletni!");
            }
            return 
1;
        }
//14.lvl
        
if(GetPlayerScore(playerid)==13)
        {
             if(
GetPlayerMoney(playerid) < 14)
            {
                   
SendClientMessage(playerid0xE6000033"Jums nav pietiekami daudz naudas, lai nopirktu 9. līmeni!");
            }
            else
               {
                
SetPlayerScore(playerid14);
                
GivePlayerMoney(playerid, -14);
                
SendClientMessage(playerid0x33AA33AA"Apsveicam! Jūs iegādājāties 9. Līmeni. Tagad jums ir iespēja lietot /parachute komandu, lai paņemtu izpletni!");
            }
            return 
1;
        }
//15.lvl
        
if(GetPlayerScore(playerid)==14)
           {
             if(
GetPlayerMoney(playerid) < 15)
            {
                   
SendClientMessage(playerid0xE6000033"Jums nav pietiekami daudz naudas, lai nopirktu 9. līmeni!");
            }
            else
               {
                
SetPlayerScore(playerid15);
                
GivePlayerMoney(playerid, -15);
                
SendClientMessage(playerid0x33AA33AA"Apsveicam! Jūs iegādājāties 9. Līmeni. Tagad jums ir iespēja lietot /parachute komandu, lai paņemtu izpletni!");
            }
            return 
1;
        }
//16.lvl
        
if(GetPlayerScore(playerid)==15)
           {
             if(
GetPlayerMoney(playerid) < 16)
            {
                   
SendClientMessage(playerid0xE6000033"Jums nav pietiekami daudz naudas, lai nopirktu 9. līmeni!");
            }
            else
               {
                
SetPlayerScore(playerid16);
                
GivePlayerMoney(playerid, -16);
                
SendClientMessage(playerid0x33AA33AA"Apsveicam! Jūs iegādājāties 9. Līmeni. Tagad jums ir iespēja lietot /parachute komandu, lai paņemtu izpletni!");
            }
            return 
1;
        }
//17.lvl
        
if(GetPlayerScore(playerid)==16)
           {
             if(
GetPlayerMoney(playerid) < 17)
            {
                   
SendClientMessage(playerid0xE6000033"Jums nav pietiekami daudz naudas, lai nopirktu 9. līmeni!");
            }
            else
               {
                
SetPlayerScore(playerid17);
                
GivePlayerMoney(playerid, -17);
                
SendClientMessage(playerid0x33AA33AA"Apsveicam! Jūs iegādājāties 9. Līmeni. Tagad jums ir iespēja lietot /parachute komandu, lai paņemtu izpletni!");
            }
        }
        return 
1;
    }
//===========================LIIMENU KOMANDAS============================================================//
//=====================================================================================================================//
//1.LĪMENIS
    
if(GetPlayerScore(playerid) >= 1)
     {
        if(!
strcmp(cmdtext"/repaircar"true4))
        {
            if(!
IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1"KĻŪDA:Tev jābūt maљīnā!");
            {
                new 
vehicleid GetPlayerVehicleID(playerid);
                
SetVehicleHealth(vehicleid1000.0);
                
SendClientMessage(playerid0x00CC00FF"Tava maљīna salabota!");
             }
             return 
1;
         }
      }
//===================================================================================================================//
//2.LĪMENIS
    
if(GetPlayerScore(playerid) >= 2)
    {
        if(!
strcmp(cmdtext"/flipcar"true4))
        {
            if(!
IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1"KĻŪDA: Tev jābūt maљīnā!");
            {
                new 
currentveh;
                new 
Float:angle;
                
currentveh GetPlayerVehicleID(playerid);
                
GetVehicleZAngle(currentvehangle);
                
SetVehicleZAngle(currentvehangle);
                
SendClientMessage(playerid0xFFFFFFFF"Tava maљīna veiksmīgi apgriezta.");
            }
        }
           return 
1;
    } 
All code.. Just next time see if your code is organized.... You just copy pasted it....
Reply


Messages In This Thread
error fs - by fireboy - 04.10.2012, 09:47
Re: error fs - by Scrillex - 04.10.2012, 09:54
Re: error fs - by mamorunl - 04.10.2012, 09:58
Re: error fs - by Scrillex - 04.10.2012, 10:14
Re: error fs - by mamorunl - 04.10.2012, 10:21
Re: error fs - by xMCx - 04.10.2012, 10:22
Re: error fs - by Scrillex - 04.10.2012, 10:23
Re: error fs - by CmZxC - 04.10.2012, 13:37
Re: error fs - by gtakillerIV - 09.10.2012, 19:00

Forum Jump:


Users browsing this thread: 1 Guest(s)