PDA

View Full Version : anti cheat error


vothanhdat
03/05/2014, 09:53 AM
error
C:\Documents and Settings\Thien An\Desktop\pawno\pawno\include\djson.inc(431) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Documents and Settings\Thien An\Desktop\pawno\pawno\include\YSI\y_debug.inc(276 ) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Documents and Settings\Thien An\Desktop\pawno\pawno\include\YSI\y_debug.inc(338 ) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Documents and Settings\Thien An\Desktop\pawno\pawno\include\YSI\y_debug.inc(343 ) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Documents and Settings\Thien An\Desktop\pawno\pawno\include\YSI\y_amx.inc(448) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Documents and Settings\Thien An\Desktop\pawno\pawno\include\YSI\y_amx.inc(898) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Documents and Settings\Thien An\Desktop\pawno\pawno\include\YSI\y_amx.inc(920) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Documents and Settings\Thien An\Desktop\pawno\pawno\include\YSI\internal\..\y_u tils.inc(237) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Documents and Settings\Thien An\Desktop\pawno\pawno\include\YSI\internal\..\y_u tils.inc(360) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Documents and Settings\Thien An\Desktop\pawno\pawno\include\YSI\internal\..\y_u tils.inc(387) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Documents and Settings\Thien An\Desktop\pawno\pawno\include\YSI\internal\..\y_u tils.inc(466) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Documents and Settings\Thien An\Desktop\pawno\pawno\include\YSI\y_malloc.inc(48 7) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Documents and Settings\Thien An\Desktop\pawno\pawno\include\YSI\y_malloc.inc(61 1) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Documents and Settings\Thien An\Desktop\pawno\pawno\include\YSI\y_timers.inc(35 0) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Documents and Settings\Thien An\Desktop\pawno\pawno\include\YSI\y_timers.inc(37 0) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Documents and Settings\Thien An\Desktop\pawno\pawno\include\mSelection.inc(598) : warning 219: local variable "str" shadows a variable at a preceding level
D:\Hgame.pwn(9415) : warning 219: local variable "health" shadows a variable at a preceding level
D:\Hgame.pwn(9415) : warning 219: local variable "armor" shadows a variable at a preceding level
D:\Hgame.pwn(20658) : warning 219: local variable "health" shadows a variable at a preceding level
D:\Hgame.pwn(20670) : warning 219: local variable "health" shadows a variable at a preceding level
D:\Hgame.pwn(22492) : warning 219: local variable "health" shadows a variable at a preceding level
D:\Hgame.pwn(25241) : warning 219: local variable "health" shadows a variable at a preceding level
D:\Hgame.pwn(25241) : warning 219: local variable "armor" shadows a variable at a preceding level
D:\Hgame.pwn(25976) : warning 219: local variable "string2" shadows a variable at a preceding level
D:\Hgame.pwn(28589) : warning 219: local variable "str" shadows a variable at a preceding level
D:\Hgame.pwn(54299) : error 010: invalid function or declaration
D:\Hgame.pwn(54301) : error 010: invalid function or declaration
D:\Hgame.pwn(54303) : error 010: invalid function or declaration
D:\Hgame.pwn(54305) : error 010: invalid function or declaration
D:\Hgame.pwn(54309) : warning 219: local variable "reason3" shadows a variable at a preceding level
D:\Hgame.pwn(54309) : warning 219: local variable "Admin" shadows a variable at a preceding level
D:\Hgame.pwn(54311) : error 021: symbol already defined: "format"
D:\Hgame.pwn(54328) : error 021: symbol already defined: "GetPlayerArmour"
D:\Hgame.pwn(54330) : error 010: invalid function or declaration
D:\Hgame.pwn(54332) : error 021: symbol already defined: "Admin"
D:\Hgame.pwn(54333) : error 021: symbol already defined: "reason3"
D:\Hgame.pwn(54334) : warning 219: local variable "reason3" shadows a variable at a preceding level
D:\Hgame.pwn(54334) : warning 219: local variable "Admin" shadows a variable at a preceding level
D:\Hgame.pwn(54335) : error 021: symbol already defined: "c2string2"
D:\Hgame.pwn(54341) : error 010: invalid function or declaration
D:\Hgame.pwn(56824) : warning 219: local variable "health" shadows a variable at a preceding level
D:\Hgame.pwn(59209) : warning 219: local variable "health" shadows a variable at a preceding level
D:\Hgame.pwn(59234) : warning 219: local variable "health" shadows a variable at a preceding level
D:\Hgame.pwn(59252) : warning 219: local variable "health" shadows a variable at a preceding level
D:\Hgame.pwn(59279) : warning 219: local variable "armor" shadows a variable at a preceding level
D:\Hgame.pwn(59300) : warning 219: local variable "armor" shadows a variable at a preceding level
D:\Hgame.pwn(61866) : warning 219: local variable "armor" shadows a variable at a preceding level
D:\Hgame.pwn(64336) : warning 219: local variable "str" shadows a variable at a preceding level
D:\Hgame.pwn(64367) : warning 219: local variable "str" shadows a variable at a preceding level
D:\Hgame.pwn(64383) : warning 219: local variable "str" shadows a variable at a preceding level
D:\Hgame.pwn(70780) : warning 219: local variable "health" shadows a variable at a preceding level
D:\Hgame.pwn(75232) : warning 202: number of arguments does not match definition
D:\Hgame.pwn(75238) : warning 202: number of arguments does not match definition
D:\Hgame.pwn(75271) : warning 202: number of arguments does not match definition
D:\Hgame.pwn(75277) : warning 202: number of arguments does not match definition
D:\Hgame.pwn(75582) : warning 219: local variable "health" shadows a variable at a preceding level
D:\Hgame.pwn(75617) : warning 219: local variable "health" shadows a variable at a preceding level
D:\Hgame.pwn(75652) : warning 219: local variable "health" shadows a variable at a preceding level
D:\Hgame.pwn(75687) : warning 219: local variable "health" shadows a variable at a preceding level
D:\Hgame.pwn(78632) : warning 219: local variable "health" shadows a variable at a preceding level
D:\Hgame.pwn(78677) : warning 219: local variable "health" shadows a variable at a preceding level
D:\Hgame.pwn(78703) : warning 219: local variable "health" shadows a variable at a preceding level
D:\Hgame.pwn(78729) : warning 219: local variable "health" shadows a variable at a preceding level
D:\Hgame.pwn(80376) : warning 219: local variable "health" shadows a variable at a preceding level
D:\Hgame.pwn(80741) : warning 219: local variable "health" shadows a variable at a preceding level
D:\Hgame.pwn(81019) : warning 219: local variable "health" shadows a variable at a preceding level
D:\Hgame.pwn(82653) : warning 219: local variable "string2" shadows a variable at a preceding level
D:\Hgame.pwn(83476) : warning 219: local variable "health" shadows a variable at a preceding level
D:\Hgame.pwn(85142) : warning 219: local variable "health" shadows a variable at a preceding level
D:\Hgame.pwn(90368) : warning 202: number of arguments does not match definition
D:\Hgame.pwn(90380) : warning 202: number of arguments does not match definition
D:\Hgame.pwn(100226) : warning 219: local variable "health" shadows a variable at a preceding level
D:\Hgame.pwn(100245) : warning 219: local variable "armor" shadows a variable at a preceding level
D:\Hgame.pwn(105239) : warning 219: local variable "health" shadows a variable at a preceding level
D:\Hgame.pwn(112978) : warning 219: local variable "health" shadows a variable at a preceding level
D:\Hgame.pwn(114267) : warning 219: local variable "health" shadows a variable at a preceding level
D:\Hgame.pwn(116201) : error 001: expected token: "-string end-", but found "-identifier-"
D:\Hgame.pwn(116201) : error 029: invalid expression, assumed zero
D:\Hgame.pwn(116201) : error 010: invalid function or declaration
D:\Hgame.pwn(116201 -- 116202) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


PWN
function OnServerUpdate()
{
foreach(Player, i)
{
if(GetPlayerSpecialAction(i) == SPECIAL_ACTION_USEJETPACK)
{
if(pInfo[i][pAdminLevel] <= 1)
{
new Admin[24] = "TrieuMaster";
new reason3[128] = "Jetpack";
BanPlayer(i,reason3,Admin);
new c2string2[128];
format(c2string2, sizeof(c2string2), ""chat"Em b %s[%d] da that bai trong hoc tap v bi banned v hack jetpack [ duoc sinh ra l do su co giao thng - bi banned l do qu nho. ]", PlayerName(i), i);
SendClientMessageToAll(COLOR_WHITE, c2string2);
}
}

/* if(GetPlayerMoney(i) >= 4)
{
new Admin[24] = "TrieuMaster";
new reason3[128] = "MONEY hack";
BanPlayer(i,reason3,Admin);
new c2string2[128];
format(c2string2, sizeof(c2string2), ""chat"Em b %s[%d] da bi banned v hack $ trong server [ no n to gh gom ]", PlayerName(i), i);
SendClientMessageToAll(COLOR_WHITE, c2string2);
}*/

new Float:health;
new Float:armor;
GetPlayerArmour(i,armor);
GetPlayerHealth(i,health);
if(armor >= 96)
{
new Admin[24] = "TrieuMaster";
new reason3[128] = "Hack gip";
BanPlayer(i,reason3,Admin);
new c2string2[128];
format(c2string2, sizeof(c2string2), ""chat"Nguoi Choi %s[%d] da test anti hack cua server v [ R.I.P ] chng ti se nh den anh ", PlayerName(i), i);
SendClientMessageToAll(COLOR_WHITE, c2string2);
}

}
return 1;
}
HELP ME

S4t3K
03/05/2014, 10:03 AM
You've forgotten a } somewhere I think.

vothanhdat
03/05/2014, 10:37 AM
HELP

EpicMan
03/05/2014, 10:40 AM
fix your YSI include and then delete local variable "armor" that u have already.
You placed mulitple local variables this is not good