I can't fix this. -____-Maybe you can?
#1

I've been looking over the command all day. And I'm getting the following errors.


C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\include\sscanf2.inc(21 : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\include\sscanf2.inc(21 : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\include\sscanf2.inc(27 : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\include\sscanf2.inc(27 : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\include\YSI\y_utils.inc(334) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\include\YSI\y_utils.inc(48 : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\include\YSI\y_utils.inc(520) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\include\YSI\y_utils.inc(53 : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\include\YSI\y_malloc.inc(215) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECDM1.pwn(76) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECDM1.pwn(121) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECDM1.pwn(432) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECDM1.pwn(49 : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECDM1.pwn(519) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECDM1.pwn(541) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECDM1.pwn(547) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECDM1.pwn(605) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECDM1.pwn(627) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECDM1.pwn(64 : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECDM1.pwn(682) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECDM1.pwn(79 : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECDM1.pwn(819) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECDM1.pwn(841) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECDM1.pwn(86 : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECDM1.pwn(881) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECDM1.pwn(889) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECDM1.pwn(904) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECDM1.pwn(923) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECDM1.pwn(940) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECDM1.pwn(949) : error 004: function "ShowStats" is not implemented
C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECDM1.pwn(967) : error 055: start of function body without function header
C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECDM1.pwn(969) : error 021: symbol already defined: "format"
C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECDM1.pwn(977) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Jeannette\Desktop\GTA MOds AND SkiNz\pawno\ECDM1.pwn(101 : warning 203: symbol is never used: "string"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Errors.


What is causing this is this code that I made.

PHP код:
ShowStats(playerid,giveplayerid);
{
    new 
string[128];
    
format(stringsizeof(string), "|_________Stats_________|");
    
SendClientMessage(playeridCOLOR_LIGHTGREENstring);
    
format(stringsizeof(string), "PlayingHours=[%d] Cookies=[%d] Vip Credits=[%d] VIP Level=[%d]"PlayerInfo[giveplayerid][pCT], PlayerInfo[giveplayerid][pCookies], PlayerInfo[giveplayerid][pDPs], PlayerInfo[giveplayerid][pVIP]);
    
SendClientMessage(playeridCOLOR_LIGHTGREENstring);
    
format(stringsizeof(string), "Kills=[%d] Deathes=[%d] Admin Level=[%d] Cash=[%d] Level=[%d]"PlayerInfo[giveplayerid][pKills], PlayerInfo[giveplayerid][pDeathes], PlayerInfo[giveplayerid][pAdmin], PlayerInfo[giveplayerid][pCash], PlayerInfo[playerid][pLevel]);
    
SendClientMessage(playeridCOLOR_LIGHTGREENstring);
}
stock SendNearbyMessage(playeridFloat:radiusstring[], col1col2col3col4col5)
{
    new 
Float:xFloat:yFloat:z;
    
GetPlayerPos(playeridxyz);
    new 
Float:ixFloat:iyFloat:iz;
    new 
Float:cxFloat:cyFloat:cz;
    foreach(
Playeri)
    {
        if(
IsPlayerConnected(i))
        {
            if(
GetPlayerInterior(playerid) == GetPlayerInterior(i) && GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i))
            {
                
GetPlayerPos(iixiyiz);
                
cx = (ix);
                
cy = (iy);
                
cz = (iz);
                if(((
cx radius/16) && (cx > -radius/16)) && ((cy radius/16) && (cy > -radius/16)) && ((cz radius/16) && (cz > -radius/16)))
                {
                    
SendClientMessage(icol1string);
                }
                else if(((
cx radius/8) && (cx > -radius/8)) && ((cy radius/8) && (cy > -radius/8)) && ((cz radius/8) && (cz > -radius/8)))
                {
                    
SendClientMessage(icol2string);
                }
                else if(((
cx radius/4) && (cx > -radius/4)) && ((cy radius/4) && (cy > -radius/4)) && ((cz radius/4) && (cz > -radius/4)))
                {
                    
SendClientMessage(icol3string);
                }
                else if(((
cx radius/2) && (cx > -radius/2)) && ((cy radius/2) && (cy > -radius/2)) && ((cz radius/2) && (cz > -radius/2)))
                {
                    
SendClientMessage(icol4string);
                }
                else if(((
cx radius) && (cx > -radius)) && ((cy radius) && (cy > -radius)) && ((cz radius) && (cz > -radius)))
                {
                    
SendClientMessage(icol5string);
                }
            }
        }
    }
    return 
1;

When I take away the code, the errors are gone. Can somebody help me.

Thanks!
Reply
#2

Remove semicolon on first line you posted.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)