Error 030
#1

Where my error?
Код:
public OnPlayerUpdate(playerid)
{
if(GetPlayerWeapon(playerid) == 35) {SendClientMessage(playerid,0xAA3333AA,"Это оружие запрещено САЛОМ!");
if(GetPlayerWeapon(playerid) == 38) {SendClientMessage(playerid,0xAA3333AA,"Єто оружие запрещено САЛОМ!");
if(GetPlayerWeapon(playerid) == 37) {SendClientMessage(playerid,0xAA3333AA,"Это оружие запрещено САЛОМ!");
if(GetPlayerWeapon(playerid) == 36) {SendClientMessage(playerid,0xAA3333AA,"Єто оружие запрещено САЛОМ!");
if(GetPlayerWeapon(playerid) == 18) {SendClientMessage(playerid,0xAA3333AA,"Это оружие запрещено САЛОМ!");
if(GetPlayerWeapon(playerid) == 25) {SendClientMessage(playerid,0xAA3333AA,"Это оружие запрещено САЛОМ!");
if(GetPlayerWeapon(playerid) == 27) {SendClientMessage(playerid,0xAA3333AA,"Єто оружие запрещено САЛОМ!");
Kick(playerid);
return true;}
{
if(!IsPlayerConnected(playerid)) return 0;
error 030: compound statement not closed at the end of file
Reply
#2

You have a random opening bracket at the end of that snippet which we cannot see being closed, are you sure it is being closed? You also have several opening brackets for each of the statements which aren't being closed either, either don't open them in the first place, or close them.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)