Help me
#1

I get this error:
Код:
C:\Users\User\Desktop\samp03dsvr_R2_win32\pawno\include\dutils.inc(28) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\User\Desktop\samp03dsvr_R2_win32\pawno\include\dutils.inc(132) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\User\Desktop\samp03dsvr_R2_win32\pawno\include\dutils.inc(172) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\User\Desktop\samp03dsvr_R2_win32\pawno\include\dutils.inc(280) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\User\Desktop\samp03dsvr_R2_win32\pawno\include\dutils.inc(337) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\User\Desktop\samp03dsvr_R2_win32\pawno\include\dutils.inc(379) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\User\Desktop\samp03dsvr_R2_win32\gamemodes\Danny.pwn(411) : error 025: function heading differs from prototype
C:\Users\User\Desktop\samp03dsvr_R2_win32\gamemodes\Danny.pwn(412) : error 021: symbol already defined: "strtok"
C:\Users\User\Desktop\samp03dsvr_R2_win32\gamemodes\Danny.pwn(427) : error 047: array sizes do not match, or destination array is too small
C:\Users\User\Desktop\samp03dsvr_R2_win32\gamemodes\Danny.pwn(437) : warning 203: symbol is never used: "ret_memcpy"
When i add these includes:
#include <dutils>
#include <Dini>
Reply
#2

The warnings are from dutils. I will skip this.
Are you have a custom Callback on line 411?
pawn Код:
// Example:
public OnPlayerSomething( playerid )
{
    // bla bla..
    return 1;
}
If yes then you need to add a forward like this:
pawn Код:
forward OnPlayerSomething( playerid );
public OnPlayerSomething( playerid )
{
    // bla bla..
    return 1;
}
Delete the strtok from line 412, you already have it.
Show us line 427, I am not sure but I think you have for example
pawn Код:
new Msg[ 64 ];
and the text has more characters than 64.
For the last add the pragma that you don't use it, to prevent the warning.
pawn Код:
// At The Top Under The Includes
#pragma unused ret_memcpy
Reply
#3

Код:
C:\Users\User\Desktop\samp03dsvr_R2_win32\pawno\include\dutils.inc(28) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\User\Desktop\samp03dsvr_R2_win32\pawno\include\dutils.inc(132) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\User\Desktop\samp03dsvr_R2_win32\pawno\include\dutils.inc(172) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\User\Desktop\samp03dsvr_R2_win32\pawno\include\dutils.inc(280) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\User\Desktop\samp03dsvr_R2_win32\pawno\include\dutils.inc(337) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\User\Desktop\samp03dsvr_R2_win32\pawno\include\dutils.inc(379) : warning 219: local variable "string" shadows a variable at a preceding level
I have these warnings now
Reply
#4

please help me to fix the warnings
Reply
#5

where you've put "#include dutils.inc", replace it with:
pawn Код:
#define string dutilsString
#include "dutils.inc"
#undef string
If the warnings still appears, you probably got an old version of dutils.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)