SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 04/10/2012, 09:47 AM   #1
fireboy
Little Clucker
 
fireboy's Avatar
 
Join Date: Feb 2012
Location: Latvia
Posts: 48
Reputation: 0
Default error fs

hello, can somebody help me with script?

http://pastebin.com/L5epfCsj

when i compile it send me this:

D:\Documents and Settings\abc\Desktop\Serveris\Conex SA-MP\filterscripts\poke.pwn(95) : warning 217: loose indentation
D:\Documents and Settings\abc\Desktop\Serveris\Conex SA-MP\filterscripts\poke.pwn(101) : warning 217: loose indentation
D:\Documents and Settings\abc\Desktop\Serveris\Conex SA-MP\filterscripts\poke.pwn(104) : warning 217: loose indentation
D:\Documents and Settings\abc\Desktop\Serveris\Conex SA-MP\filterscripts\poke.pwn(260) : warning 217: loose indentation
D:\Documents and Settings\abc\Desktop\Serveris\Conex SA-MP\filterscripts\poke.pwn(354) : warning 217: loose indentation
D:\Documents and Settings\abc\Desktop\Serveris\Conex SA-MP\filterscripts\poke.pwn(366) : warning 217: loose indentation
D:\Documents and Settings\abc\Desktop\Serveris\Conex SA-MP\filterscripts\poke.pwn(385) : warning 217: loose indentation
D:\Documents and Settings\abc\Desktop\Serveris\Conex SA-MP\filterscripts\poke.pwn(399) : error 030: compound statement not closed at the end of file (started at line 373)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

big thank you.
fireboy is offline   Reply With Quote
Old 04/10/2012, 09:54 AM   #2
Scrillex
High-roller
 
Scrillex's Avatar
 
Join Date: Jan 2012
Location: In my dreams!
Posts: 1,226
Reputation: 31
Default Re: error fs

line 95.
PHP Code:
    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;
        }
    } 
__________________
If you need something just ask!

Scrillex is offline   Reply With Quote
Old 04/10/2012, 09:58 AM   #3
mamorunl
High-roller
 
mamorunl's Avatar
 
Join Date: Feb 2007
Location: Groningen/Netherlands
Posts: 1,938
Reputation: 2246
Default Re: error fs

Loose indentation: The indentation of your code is not compliant with the way the compiler expects it to be. The solution to this is to indent your code properly.

Compound statement not closed at the end of file: Somewhere in your code you are missing a closing fish hook ( } ).
mamorunl is offline   Reply With Quote
Old 04/10/2012, 10:14 AM   #4
Scrillex
High-roller
 
Scrillex's Avatar
 
Join Date: Jan 2012
Location: In my dreams!
Posts: 1,226
Reputation: 31
Default Re: error fs

PHP Code:
    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....
__________________
If you need something just ask!

Scrillex is offline   Reply With Quote
Old 04/10/2012, 10:21 AM   #5
mamorunl
High-roller
 
mamorunl's Avatar
 
Join Date: Feb 2007
Location: Groningen/Netherlands
Posts: 1,938
Reputation: 2246
Default Re: error fs

Quote:
Originally Posted by ****** View Post
Brace...
Then what do you call the round bracets? I like fish hook
mamorunl is offline   Reply With Quote
Old 04/10/2012, 10:22 AM   #6
xMCx
Huge Clucker
 
xMCx's Avatar
 
Join Date: May 2012
Location: Mars.
Posts: 250
Reputation: 23
Default Re: error fs

use
pawn Code:
#pargma tabsize 0//to get rid of those warnings
and
pawn Code:
#endif//to end the if you started
xMCx is offline   Reply With Quote
Old 04/10/2012, 10:23 AM   #7
Scrillex
High-roller
 
Scrillex's Avatar
 
Join Date: Jan 2012
Location: In my dreams!
Posts: 1,226
Reputation: 31
Default Re: error fs

Not needed to use them.. Just was messy code thats all! All errors are gone now and everything is fine
__________________
If you need something just ask!

Scrillex is offline   Reply With Quote
Old 04/10/2012, 01:37 PM   #8
CmZxC
Huge Clucker
 
CmZxC's Avatar
 
Join Date: Apr 2011
Location: Notepad++ ; pawncc.exe
Posts: 373
Reputation: 35
Default Re: error fs

Quote:
Originally Posted by ****** View Post
No don't use that, that doesn't fix ANYTHING, just tells the compiler to ignore major problems in your code.
Finally, someone saying this.

Also its spelled #pragma not #pargma.
__________________
Boo-hoo.
CmZxC is offline   Reply With Quote
Old 09/10/2012, 07:00 PM   #9
gtakillerIV
Gangsta
 
gtakillerIV's Avatar
 
Join Date: Sep 2011
Location: UAE, Sharjah.
Posts: 985
Reputation: 201
Default Re: error fs

Why not make a rule that says you are not allowed to tell people to use #pragma size 0 ?

Sorry for the off topic but I see this is going in a bad way.
gtakillerIV is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
An error has occured. (Error ID: 1064, You have an error in your SQL syntax; check the manual that corresponds.... rati555 Scripting Help 1 14/09/2012 07:45 PM
Registered plate stock error 'error 076: syntax error in the expression, or invalid function call' Deal-or-die Scripting Help 2 25/06/2012 03:12 PM
Error message: : error 030: compound statement not closed at the end of file (started at line 170) the_zohan Scripting Help 5 04/06/2012 08:38 AM
Error message: : error 030: compound statement not closed at the end of file (started at line 503) David5290 Scripting Help 5 13/04/2012 03:50 AM
I get tagmismatch error, But i cant find any error error Swiftz Help Archive 1 16/04/2011 04:31 AM


All times are GMT. The time now is 10:43 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.