19.01.2013, 10:52
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:
What is weird, instead of having this:
I had this,
And got only these 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
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.
Код:
#define UserPath "/Users/%s.ini"
Код:
#define userpath "/Users/%s.ini"
Код:
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
