Help with my simple anti cheat :D
#1

pawn Код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
    new weapname[32], weapname2[32], string[32];
    GetWeaponName(weaponid, weapname, sizeof(weapname));
    format(string, sizeof(string), "%s", weapname);
    if(GetPVarString(playerid, "Weapon", weapname2, sizeof(weapname2)) != string) return SCM(playerid, -1, "Hello Hacker");
    return 1;
}
So i get this error:
error 033: array must be indexed (variable "string")

basiacally what i do is when my script gives someone a weapon, i set pvarstring on him for the weapon name, now on shot i want to detect it but how to match those strings, i keep getting same error

thanks
Reply


Messages In This Thread
Help with my simple anti cheat :D - by PMH - 27.08.2014, 17:12
Re: Help with my simple anti cheat :D - by ThePhenix - 27.08.2014, 17:24
Re: Help with my simple anti cheat :D - by PMH - 27.08.2014, 17:26
Re: Help with my simple anti cheat :D - by Stinged - 27.08.2014, 17:53
Re: Help with my simple anti cheat :D - by PMH - 27.08.2014, 18:12

Forum Jump:


Users browsing this thread: 1 Guest(s)