SA-MP Forums Archive
How to fix this error ? - 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: How to fix this error ? (/showthread.php?tid=511937)



How to fix this error ? - EgyptForLife - 08.05.2014

Error :
Код:
D:\Chill Role Play\gamemodes\SZONE.pwn(7389) : error 037: invalid string (possibly non-terminated string)
D:\Chill Role Play\gamemodes\SZONE.pwn(7389) : error 017: undefined symbol "Bine"
D:\Chill Role Play\gamemodes\SZONE.pwn(7389) : error 017: undefined symbol "Venit"
D:\Chill Role Play\gamemodes\SZONE.pwn(7389) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
The Line 7389 :

Код:
format(motd, sizeof(motd), "Welcome To Chill RolePlay Server.")



Re: How to fix this error ? - NoahF - 08.05.2014

Try this:

Код:
format(motd, sizeof(motd), "Welcome To Chill RolePlay Server.");



Re: How to fix this error ? - MichealScript - 08.05.2014

Quote:

Try this:

Code:
format(motd, sizeof(motd), "Welcome To Chill RolePlay Server.");

if this didn't worked then then you have proplem in includes


Re: How to fix this error ? - Sojo12 - 08.05.2014

Quote:
Originally Posted by MichealScript
Посмотреть сообщение
if this didn't worked then then you have proplem in includes
That should work.


Re: How to fix this error ? - EgyptForLife - 08.05.2014

Quote:
Originally Posted by MichealScript
Посмотреть сообщение
if this didn't worked then then you have proplem in includes
I made it, but now i find these errors :
Код:
D:\Chill Role Play\gamemodes\SZONE.pwn(7390) : error 029: invalid expression, assumed zero
D:\Chill Role Play\gamemodes\SZONE.pwn(7390) : error 029: invalid expression, assumed zero
D:\Chill Role Play\gamemodes\SZONE.pwn(7390) : warning 215: expression has no effect
D:\Chill Role Play\gamemodes\SZONE.pwn(32606) : warning 203: symbol is never used: "gminute"
D:\Chill Role Play\gamemodes\SZONE.pwn(32606) : warning 203: symbol is never used: "gsecond"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
The 2 Lines :
1). 7390
Код:
-*[+ttime(ghour, gminute, gsecond);
2). 32606
Код:
 Doesn't exist, last line is 32605.



Re: How to fix this error ? - Andreas1331 - 08.05.2014

The complier is telling you that the varibles "gminute" and "gsecond" have never been used anywhere in the script besides the time when you declared them.

So when you use them somewhere else, those two warnings will go away.


Re: How to fix this error ? - EgyptForLife - 08.05.2014

If i remove them, nothing will happen ?


Re: How to fix this error ? - Andreas1331 - 08.05.2014

Yes, you should be able to just remove those two without any errors showing.