27.08.2014, 17:12
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;
}
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