08.03.2012, 17:46
Hi,
Error:
Error line:
All code:
Error:
Code:
error 033: array must be indexed (variable "name")
Code:
if(name == skaicius)
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(); }