SA-MP Forums Archive
#include problem... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: #include problem... (/showthread.php?tid=276945)



#include problem... - DragonYancy - 15.08.2011

I was updating DYBANK system but I saw a really big problem... This is my file wich has DYBANK system on updating...
http://solidfiles.com/d/3d36f/
Please help me

Код:
C:\Users\PcUcan1\Desktop\Yiğit\SA\SAMP-Server2\pawno\include\Dini.inc(239) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\PcUcan1\Desktop\Yiğit\SA\SAMP-Server2\filterscripts\DYBank.pwn(36) : error 017: undefined symbol "strtok"
C:\Users\PcUcan1\Desktop\Yiğit\SA\SAMP-Server2\filterscripts\DYBank.pwn(120) : warning 219: local variable "file" shadows a variable at a preceding level
C:\Users\PcUcan1\Desktop\Yiğit\SA\SAMP-Server2\filterscripts\DYBank.pwn(120) : warning 219: local variable "Name" shadows a variable at a preceding level
C:\Users\PcUcan1\Desktop\Yiğit\SA\SAMP-Server2\filterscripts\DYBank.pwn(144) : warning 219: local variable "file" shadows a variable at a preceding level
C:\Users\PcUcan1\Desktop\Yiğit\SA\SAMP-Server2\filterscripts\DYBank.pwn(144) : warning 219: local variable "Name" shadows a variable at a preceding level
C:\Users\PcUcan1\Desktop\Yiğit\SA\SAMP-Server2\filterscripts\DYBank.pwn(158) : error 055: start of function body without function header
C:\Users\PcUcan1\Desktop\Yiğit\SA\SAMP-Server2\filterscripts\DYBank.pwn(160) : error 021: symbol already defined: "GetPlayerName"
C:\Users\PcUcan1\Desktop\Yiğit\SA\SAMP-Server2\filterscripts\DYBank.pwn(161) : error 010: invalid function or declaration
C:\Users\PcUcan1\Desktop\Yiğit\SA\SAMP-Server2\filterscripts\DYBank.pwn(162) : error 010: invalid function or declaration
C:\Users\PcUcan1\Desktop\Yiğit\SA\SAMP-Server2\filterscripts\DYBank.pwn(163) : error 010: invalid function or declaration
C:\Users\PcUcan1\Desktop\Yiğit\SA\SAMP-Server2\filterscripts\DYBank.pwn(168) : error 021: symbol already defined: "dini_IntSet"
C:\Users\PcUcan1\Desktop\Yiğit\SA\SAMP-Server2\filterscripts\DYBank.pwn(170) : error 021: symbol already defined: "format"
C:\Users\PcUcan1\Desktop\Yiğit\SA\SAMP-Server2\filterscripts\DYBank.pwn(172) : error 021: symbol already defined: "dini_IntSet"
C:\Users\PcUcan1\Desktop\Yiğit\SA\SAMP-Server2\filterscripts\DYBank.pwn(173) : error 021: symbol already defined: "format"
C:\Users\PcUcan1\Desktop\Yiğit\SA\SAMP-Server2\filterscripts\DYBank.pwn(175) : error 010: invalid function or declaration
C:\Users\PcUcan1\Desktop\Yiğit\SA\SAMP-Server2\filterscripts\DYBank.pwn(254 -- 255) : error 029: invalid expression, assumed zero
C:\Users\PcUcan1\Desktop\Yiğit\SA\SAMP-Server2\filterscripts\DYBank.pwn(267 -- 268) : error 029: invalid expression, assumed zero
C:\Users\PcUcan1\Desktop\Yiğit\SA\SAMP-Server2\filterscripts\DYBank.pwn(276) : error 002: only a single statement (or expression) can follow each "case"
C:\Users\PcUcan1\Desktop\Yiğit\SA\SAMP-Server2\filterscripts\DYBank.pwn(276) : warning 215: expression has no effect
C:\Users\PcUcan1\Desktop\Yiğit\SA\SAMP-Server2\filterscripts\DYBank.pwn(276) : error 001: expected token: ";", but found "return"
C:\Users\PcUcan1\Desktop\Yiğit\SA\SAMP-Server2\filterscripts\DYBank.pwn(278) : warning 225: unreachable code
C:\Users\PcUcan1\Desktop\Yiğit\SA\SAMP-Server2\filterscripts\DYBank.pwn(280) : error 017: undefined symbol "P_DATA"
C:\Users\PcUcan1\Desktop\Yiğit\SA\SAMP-Server2\filterscripts\DYBank.pwn(280) : warning 215: expression has no effect
C:\Users\PcUcan1\Desktop\Yiğit\SA\SAMP-Server2\filterscripts\DYBank.pwn(280) : error 001: expected token: ";", but found "]"
C:\Users\PcUcan1\Desktop\Yiğit\SA\SAMP-Server2\filterscripts\DYBank.pwn(280) : error 029: invalid expression, assumed zero
C:\Users\PcUcan1\Desktop\Yiğit\SA\SAMP-Server2\filterscripts\DYBank.pwn(280) : fatal error 107: too many error messages on one line



Re: #include problem... - Tigerkiller - 15.08.2011

lol you forgot a } in a callback check ^^


Re: #include problem... - JonathanFeitosa - 15.08.2011

lack of key }


Re: #include problem... - DragonYancy - 16.08.2011

Mhm... Wich line?


Re: #include problem... - Biesmen - 16.08.2011

We can't tell you which line if we can't see the script. But since you don't know it I think it's impossible for us to see it if you won't send us your whole script.

Your script isn't really big (as I can see on the error), you could try to find it yourself by searching for a missing bracket ("}") at every "if statements".


Re: #include problem... - DragonYancy - 16.08.2011

I sent the script!
http://solidfiles.com/d/3d36f/


Re: #include problem... - Biesmen - 16.08.2011

Oh, sorry. Try to find those lines:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
}
{
Then remove the last 2 brackets
pawn Код:
}
{



Re: #include problem... - DragonYancy - 16.08.2011

Quote:
Originally Posted by Biesmen
Посмотреть сообщение
Oh, sorry. Try to find those lines:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
}
{
Then remove the last 2 brackets
pawn Код:
}
{
Couln't find something like that...
I found

{
}