Need some help with a weaponcheck timer
#1

Код:
public weaponcheck()
{
	for(new i=0; i<MAX_PLAYERS; i++)
  {
    new weaponid;
    weaponid = GetPlayerWeapon(i);
		if(weaponid == 38, weaponid == 37, weaponid == 21, weaponid == 9, weaponid == 8, weaponid == 7, weaponid == 6, weaponid == 18, weaponid == 32, weaponid == 28, weaponid == 36, weaponid== 40);
		{
		  new name[MAX_PLAYER_NAME], string[128];
  		GetPlayerName(playerid, name, sizeof(name));
  		format(string, sizeof(string), ":: ADM-WARNING: %s is a potential weapon hacker :: ", name );
  		SendClientMessageToAdmins(RED, string);
  		return 1;
		}

	}
  return 0;
}
Whats wrong in here? And how can I add the playerґs ID to the adm-warning?

Errors:

C:\Dokumente und Einstellungen\Moritz\Desktop\WW3\admin.pwn(3293) : error 036: empty statement
C:\Dokumente und Einstellungen\Moritz\Desktop\WW3\admin.pwn(3296) : error 017: undefined symbol "playerid"
C:\Dokumente und Einstellungen\Moritz\Desktop\WW3\admin.pwn(34) : error 001: expected token: ";", but found "enum"
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)