SA-MP Forums Archive
Ravens Roleplay errors - 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: Ravens Roleplay errors (/showthread.php?tid=204281)



Ravens Roleplay errors - antsolen - 29.12.2010

Im getting errors :
Код:
C:\Documents and Settings\Andero\Desktop\deam rc3\pawno\include\dutils.inc(369) : warning 219: local variable "offset" shadows a variable at a preceding level
C:\Documents and Settings\Andero\Desktop\deam rc3\pawno\include\dutils.inc(370) : warning 219: local variable "result" shadows a variable at a preceding level
C:\Documents and Settings\Andero\Desktop\Ravens\gamemodes\larp.pwn(25226) : error 021: symbol already defined: "strtok"
C:\Documents and Settings\Andero\Desktop\Ravens\gamemodes\larp.pwn(25226) : error 003: declaration of a local variable must appear in a compound block
C:\Documents and Settings\Andero\Desktop\Ravens\gamemodes\larp.pwn(25224) : error 010: invalid function or declaration
C:\Documents and Settings\Andero\Desktop\Ravens\gamemodes\larp.pwn(25224 -- 25227) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Line 369-370
Код:
*	Level: +3 ; Price +45000
*	* Temple
Line 25224 - 25227
Код:
strtok(const string[], &index)

	new length = strlen(string);
	while ((index < length) && (string[index] <= ' '))



Re: Ravens Roleplay errors - Voldemort - 29.12.2010

Check all inlcuded, I bet in some of them strtok is already defined


Re: Ravens Roleplay errors - antsolen - 29.12.2010

I have these includes
Код:
#include <a_samp>
#include <core>
#include <float>
#include <time>
#include <file>
#include <utils>
#include <morphinc>
#include <a_npc>
#include <streamer>
#include <Dini>
#include <dutils>



Re: Ravens Roleplay errors - wolfcock - 29.12.2010

sure you using the Pawno were you placed the INCLUDES? - VERY IMPORTANT!


Re: Ravens Roleplay errors - Grim_ - 29.12.2010

Код:
C:\Documents and Settings\Andero\Desktop\deam rc3\pawno\include\dutils.inc(369) : warning 219: local variable "offset" shadows a variable at a preceding level
C:\Documents and Settings\Andero\Desktop\deam rc3\pawno\include\dutils.inc(370) : warning 219: local variable "result" shadows a variable at a preceding level
These two variables ('offset' and 'result') are already created inside of dutils library. Open it and replace all instances of those two variables with different names.

Код:
C:\Documents and Settings\Andero\Desktop\Ravens\gamemodes\larp.pwn(25226) : error 021: symbol already defined: "strtok"
Exactly as it says, "strtok" is already defined in the script. Search and delete (or comment) one of the function.

Код:
C:\Documents and Settings\Andero\Desktop\Ravens\gamemodes\larp.pwn(25226) : error 003: declaration of a local variable must appear in a compound block
C:\Documents and Settings\Andero\Desktop\Ravens\gamemodes\larp.pwn(25224) : error 010: invalid function or declaration
C:\Documents and Settings\Andero\Desktop\Ravens\gamemodes\larp.pwn(25224 -- 25227) : fatal error 107: too many error messages on one line
We will need to see the code of these lines to further assist you.