09.07.2012, 16:52
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.
When I take away the code, the errors are gone. Can somebody help me.
Thanks!
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(string, sizeof(string), "|_________Stats_________|");
SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
format(string, sizeof(string), "PlayingHours=[%d] Cookies=[%d] Vip Credits=[%d] VIP Level=[%d]", PlayerInfo[giveplayerid][pCT], PlayerInfo[giveplayerid][pCookies], PlayerInfo[giveplayerid][pDPs], PlayerInfo[giveplayerid][pVIP]);
SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
format(string, sizeof(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(playerid, COLOR_LIGHTGREEN, string);
}
stock SendNearbyMessage(playerid, Float:radius, string[], col1, col2, col3, col4, col5)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
new Float:ix, Float:iy, Float:iz;
new Float:cx, Float:cy, Float:cz;
foreach(Player, i)
{
if(IsPlayerConnected(i))
{
if(GetPlayerInterior(playerid) == GetPlayerInterior(i) && GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i))
{
GetPlayerPos(i, ix, iy, iz);
cx = (x - ix);
cy = (y - iy);
cz = (z - iz);
if(((cx < radius/16) && (cx > -radius/16)) && ((cy < radius/16) && (cy > -radius/16)) && ((cz < radius/16) && (cz > -radius/16)))
{
SendClientMessage(i, col1, string);
}
else if(((cx < radius/8) && (cx > -radius/8)) && ((cy < radius/8) && (cy > -radius/8)) && ((cz < radius/8) && (cz > -radius/8)))
{
SendClientMessage(i, col2, string);
}
else if(((cx < radius/4) && (cx > -radius/4)) && ((cy < radius/4) && (cy > -radius/4)) && ((cz < radius/4) && (cz > -radius/4)))
{
SendClientMessage(i, col3, string);
}
else if(((cx < radius/2) && (cx > -radius/2)) && ((cy < radius/2) && (cy > -radius/2)) && ((cz < radius/2) && (cz > -radius/2)))
{
SendClientMessage(i, col4, string);
}
else if(((cx < radius) && (cx > -radius)) && ((cy < radius) && (cy > -radius)) && ((cz < radius) && (cz > -radius)))
{
SendClientMessage(i, col5, string);
}
}
}
}
return 1;
}
Thanks!