error 020: invalid symbol name ""
#1

Код:
COMMAND:enter(playerid, params[])
{
	new string[128];
    if (PlayerInfo[playerid][pPlayerLogged] == 0) return SendClientMessage(playerid, COLOR_WHITE, "SERVER: You must be logged in to use this.");
    if (PlayerInfo[playerid][pDead] == 1) return SendClientMessage(playerid, COLOR_WHITE, "SERVER: Cannot use this command while dead.");
    if(PlayerInfo[playerid][pMute] == 1) return SendClientMessage(playerid,COLOR_LIGHTRED,"WARNING: You are currently muted.");
	for(new h = 0; h < sizeof(HouseInfo); h++)
	{
	    if(IsPlayerInRangeOfPoint(playerid,2.0,HouseInfo[h][hEnterX],HouseInfo[h][hEnterY],HouseInfo[h][hEnterZ]))
	    {
	        if(HouseInfo[h][hLock] == 0)
	        {
	            SetPlayerPos(playerid,HouseInfo[h][hExitX],HouseInfo[h][hExitY],HouseInfo[h][hExitZ]);
	            SetPlayerInterior(playerid,HouseInfo[h][hInterior]);
	            SetPlayerVirtualWorld(playerid,h+100);
	            PlayerInfo[playerid][pHouseEnter] = h;
	            if(strcmp(PlayerName(playerid), HouseInfo[h][hOwner], true) == 0)
	            {
	                format(string, sizeof(string), "INFO: Welcome home %s, there is $%d in your house inventory.", PlayerName(playerid), HouseInfo[h][hMoney]);
	                SendClientMessage(playerid,COLOR_LIGHTBLUE, string);
	            }
	        }
	        else
	        {
	            SendClientMessage(playerid,COLOR_LIGHTRED,"INFO: House is locked.");
	        }
	    }
	}
I am Getting error 020: invalid symbol name "" Where Is Mistake PLZ Help :S
Reply
#2

Forgot to end the previous line with a semicolon, perhaps?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)