error 033: array must be indexed (variable "name")
#1

Hi,

Error:
Code:
error 033: array must be indexed (variable "name")
Error line:
Code:
if(name == skaicius)
All code:
Code:
	if(pickupid == verslasorouostas)
	{
		new query[200];
		format(query,200,"SELECT `Vardas` FROM `verslai` WHERE `Verslas` = 'OroUostas' ");
		mysql_query(query);
		mysql_store_result();
		if(mysql_num_rows()==1)
		{
			if(mysql_retrieve_row())
			{
			    new name[MAX_PLAYER_NAME];
			    GetPlayerName(playerid,name,MAX_PLAYER_NAME);
			    new skaicius[200];
				mysql_fetch_field_row(skaicius,"Vardas");
				if(name == skaicius)
				{
				    SendClientMessage(playerid,RAUDONA,"Jūs");
				}else{
					SendClientMessage(playerid,RAUDONA,"Ne jūs");
				}
				mysql_get_field("Vardas",skaicius);
			}
		}else{
		    SendClientMessage(playerid,RAUDONA,"Nлra savininko");
		}
	    mysql_free_result();
	}
Reply


Messages In This Thread
error 033: array must be indexed (variable "name") - by deimantas1 - 08.03.2012, 17:46
Re: error 033: array must be indexed (variable "name") - by [XST]O_x - 08.03.2012, 17:48
Re: error 033: array must be indexed (variable "name") - by MadeMan - 08.03.2012, 17:48
Re: error 033: array must be indexed (variable "name") - by deimantas1 - 08.03.2012, 17:54
Re: error 033: array must be indexed (variable "name") - by deimantas1 - 08.03.2012, 17:58

Forum Jump:


Users browsing this thread: 2 Guest(s)