SA-MP Forums Archive
error 020: invalid symbol name "" - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: error 020: invalid symbol name "" (/showthread.php?tid=250766)



error 020: invalid symbol name "" - rati555 - 24.04.2011

Код:
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


Re: error 020: invalid symbol name "" - Vince - 24.04.2011

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