Ravens Roleplay errors
#1

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] <= ' '))
Reply
#2

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

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>
Reply
#4

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

Код:
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)