SA-MP Forums Archive
error 006: must be assigned to an array - 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)
+--- Thread: error 006: must be assigned to an array (/showthread.php?tid=468617)



error 006: must be assigned to an array - MrMou6 - 09.10.2013

Код:
 while(mysql_retrieve_row())
        {
		    mysql_get_field("x", result);
		    mX = floatstr(result);
		    mysql_get_field("y", result);
		    mY = floatstr(result);
		    mysql_get_field("z", result);
		    mZ = floatstr(result);
		    mysql_get_field("a", result);
		    mA = floatstr(result);
		    mysql_get_field("masinosID", result);
		    masinosID = strval(result);
		    pInfo[playerid][m2id] = AddStaticVehicle(masinosID, mX,mY,mZ, mA, 0, 1);
		    
		    mysql_get_field("owner", result);
		    vInfo[pInfo[playerid][m2id]][owner] = result;
wrong line:
Код:
vInfo[pInfo[playerid][m2id]][owner] = result;
i think i get string variable, and I need still this.


Re: error 006: must be assigned to an array - DanishHaq - 09.10.2013

pawn Код:
strmid(vInfo[pInfo[playerid][m2id]][owner], result, 0, strlen(result));



Re: error 006: must be assigned to an array - MrMou6 - 09.10.2013

Thanks