Errors in compiler when making an admin system? - 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)
+--- Thread: Errors in compiler when making an admin system? (
/showthread.php?tid=408745)
Errors in compiler when making an admin system? -
Goldino - 19.01.2013
Hello SA-MP Community. I'm currently building an Admin System for my CnR server. It's an FS, so the Admin part is not in the game mode. Here is the script, It is short because I started making the first command but I compiled it and got some errors:
http://pastebin.com/26KLNdbi
And here are the errors:
pawn Код:
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\New Project\filterscripts\admin.pwn(58) : error 001: expected token: ")", but found "return"
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\New Project\filterscripts\admin.pwn(64) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\New Project\filterscripts\admin.pwn(64) : warning 215: expression has no effect
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\New Project\filterscripts\admin.pwn(64) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\New Project\filterscripts\admin.pwn(64) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\New Project\filterscripts\admin.pwn(64) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
What is weird, instead of having this:
Код:
#define UserPath "/Users/%s.ini"
I had this,
Код:
#define userpath "/Users/%s.ini"
And got only these errors,
Код:
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\New Project\filterscripts\admin.pwn(58) : error 001: expected token: ")", but found "return"
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\New Project\filterscripts\admin.pwn(64) : error 017: undefined symbol "UserPath"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
And what I'm saying is, the define of the UserPath had no capitals in the word "UserPath", and like that I did not have alot of errors. What does the capitals in the define have to do with the script? So when I changed it from "userpath" to "UserPath" with the capitals, I had many more errors than before.
If any of you could please help me, I would really appreciate it! Thanks
Re: Errors in compiler when making an admin system? -
Infinity90 - 19.01.2013
http://pastebin.com/MEEnyVaQ
Re: Errors in compiler when making an admin system? -
Goldino - 19.01.2013
Then I get this,
Код:
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\New Project\pawno\include\YSI\y_utils.inc(239) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\New Project\pawno\include\YSI\y_utils.inc(310) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\New Project\pawno\include\YSI\y_utils.inc(342) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\New Project\pawno\include\YSI\y_utils.inc(360) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\New Project\filterscripts\admin.pwn(64) : error 017: undefined symbol "Path"
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\New Project\filterscripts\admin.pwn(278) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\New Project\filterscripts\admin.pwn(281) : error 021: symbol already defined: "GetPlayerName"
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\New Project\filterscripts\admin.pwn(283) : error 010: invalid function or declaration
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\New Project\filterscripts\admin.pwn(285) : warning 203: symbol is never used: "playername"
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\New Project\filterscripts\admin.pwn(285) : warning 203: symbol is never used: "string"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Re: Errors in compiler when making an admin system? -
Infinity90 - 19.01.2013
http://pastebin.com/TWhPBd83
Re: Errors in compiler when making an admin system? -
Goldino - 19.01.2013
Quote:
Originally Posted by Infinity90
|
Thank you so much <3 A rep for you