whats wrong with this line?
#1

pawn Код:
if(!IsPlayerAdmin(playerid)); return 0;
C:\Users\iphone\Desktop\Our Server\Raven's Roleplay 0.3D\filterscripts\dialogsss.pwn(63) : error 036: empty statement
Reply
#2

Quote:
Originally Posted by thefatshizms
Посмотреть сообщение
pawn Код:
if(!IsPlayerAdmin(playerid)); return 0;
C:\Users\iphone\Desktop\Our Server\Raven's Roleplay 0.3D\filterscripts\dialogsss.pwn(63) : error 036: empty statement
it should be

pawn Код:
if(!IsPlayerAdmin(playerid)) return 0;
there was ";" in your line which was the cause of such error.
-FalconX
Reply
#3

lol how can i make such a stupid mistake lol anyway thanks for the help +reped
Reply
#4

no point posting another thread i have another problem with same file in log it says it unable to load it how could i fix it?
Reply
#5

Quote:
Originally Posted by thefatshizms
Посмотреть сообщение
no point posting another thread i have another problem with same file in log it says it unable to load it how could i fix it?
Will you care to share the name of that file which fail on loading ? and post errors.

-FalconX
Reply
#6

name: dialogss
there is no errors just 2 warning's which are:

C:\Users\iphone\Desktop\0.3e\filterscripts\dialogs ss.pwn(65) : warning 217: loose indentation
C:\Users\iphone\Desktop\0.3e\filterscripts\dialogs ss.pwn(309) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Warnings.

line 65 :
pawn Код:
ShowPlayerDialog(playerid, DIALOGW, DIALOG_STYLE_LIST, "{FF0000}weapons", "{00FF00}9mm\n{00FF00}Silenced 9mm\n{00FF00}Desert Eagle\n{00FF00}Tec-9\n{00FF00}Micro SMG\n{00FF00}SMG\n{00FF00}Shotgun\n{00FF00}Sawnoff Shotgun\n{00FF00}Combat Shotgun\n{00FF00}M4\n{00FF00}Ak47\n{00FF00}Sniper Rifle\n{00FF00}Molotov Cocktail\n{00FF00}Grenade\n{00FF00}Remote Explosives\n{00FF00}Mini Gun\n{00FF00}Rocket Launcher", "ok", "cancel");
line 309:
pawn Код:
return 1;
server_log:
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3e, ©2005-2012 SA-MP Team

[23:58:43]
[23:58:43] Server Plugins
[23:58:43] --------------
[23:58:43] Loaded 0 plugins.

[23:58:43]
[23:58:43] Filterscripts
[23:58:43] ---------------
[23:58:43] Loading filterscript 'dialogss.amx'...
[23:58:43] Unable to load filterscript 'dialogss.amx'.
[23:58:43] Loaded 0 filterscripts.

[23:58:43] Loaded 3 vehicles from: vehicles/trains.txt
[23:58:43] Loaded 3 vehicles from: vehicles/pilots.txt
[23:58:43] Loaded 15 vehicles from: vehicles/lv_law.txt
[23:58:43] Loaded 39 vehicles from: vehicles/lv_airport.txt
[23:58:43] Loaded 255 vehicles from: vehicles/lv_gen.txt
[23:58:43] Loaded 38 vehicles from: vehicles/sf_law.txt
[23:58:43] Loaded 35 vehicles from: vehicles/sf_airport.txt
[23:58:43] Loaded 353 vehicles from: vehicles/sf_gen.txt
[23:58:43] Loaded 24 vehicles from: vehicles/ls_law.txt
[23:58:43] Loaded 37 vehicles from: vehicles/ls_airport.txt
[23:58:43] Loaded 98 vehicles from: vehicles/ls_gen_inner.txt
[23:58:43] Loaded 389 vehicles from: vehicles/ls_gen_outer.txt
[23:58:43] Loaded 71 vehicles from: vehicles/whetstone.txt
[23:58:43] Loaded 168 vehicles from: vehicles/bone.txt
[23:58:43] Loaded 61 vehicles from: vehicles/flint.txt
[23:58:43] Loaded 96 vehicles from: vehicles/tierra.txt
[23:58:43] Loaded 96 vehicles from: vehicles/red_county.txt
[23:58:43] Total vehicles from files: 1781
[23:58:43]
---------------------------------------
[23:58:43] Running Grand Larceny - by the SA-MP team

[23:58:43] ---------------------------------------
Reply
#7

my internet or something laged sorry for the double post
Reply
#8

You must check in your filterscript folder that you have "dialogss.amx" in it. If it's not there then you must make sure that it should be there so it can load. When the server starts it checks if the filterscript will be going to run, if it fails it's most probably a problem that it never exist in the filterscript folder.

Now for the Loose Indentation warnings, it's really very easy for fixing such warnings. Well it's not impossible but more easier to fix it. Use the following link and you will get to know how it fixed.

https://sampforum.blast.hk/showthread.php?tid=256961
-FalconX
Reply
#9

ok done that but still wont load the fs and the .amx and .pwn are in the filtersctripts folder
Reply
#10

Quote:
Originally Posted by thefatshizms
Посмотреть сообщение
ok done that but still wont load the fs and the .amx and .pwn are in the filtersctripts folder
Okay, I am not sure that how good is your "dialogss.amx" scripted, if it has so many errors it won't run also try re-compiling dialogss.pwn to amx (with latest pawn 0.3e) and then restart your server. Secondly, that script might need sscanf or other plugin/includes you must have a look on the script of dialogss.amx.

-FalconX
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)