SA-MP Forums Archive
Array problem... - 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: Array problem... (/showthread.php?tid=116606)



Array problem... - introzen - 29.12.2009

Hey, I got this Error:

Код:
(1617) : error 006: must be assigned to an array
on this:
pawn Код:
HouseInfo[HouseID2][hOwner] = dini_Get("CLRP/Houses/House2","Owner");
Help please...


Re: Array problem... - Zamaroht - 29.12.2009

dini_Get returns a string. I'm guessing that hOwner is an integer.


Re: Array problem... - introzen - 29.12.2009

Got this when I made hOwner[256]

Код:
E:\Documents and Settings\IntrozeN\Desktop\SAMP Serv\gamemodes\CLRP.pwn(1617) : error 047: array sizes do not match, or destination array is too small



Re: Array problem... - Deat_Itself - 29.12.2009

Quote:
Originally Posted by IntrozeN
Got this when I made hOwner[256]

Код:
E:\Documents and Settings\IntrozeN\Desktop\SAMP Serv\gamemodes\CLRP.pwn(1617) : error 047: array sizes do not match, or destination array is too small
try hOwner[128];


Re: Array problem... - introzen - 29.12.2009

Quote:
Originally Posted by _Saif_
Quote:
Originally Posted by IntrozeN
Got this when I made hOwner[256]

Код:
E:\Documents and Settings\IntrozeN\Desktop\SAMP Serv\gamemodes\CLRP.pwn(1617) : error 047: array sizes do not match, or destination array is too small
try hOwner[128];
no drifference. tried it before


Re: Array problem... - Harry_Gaill - 29.12.2009

format(HouseInfo[HouseID2][hOwner], MAX_PLAYER_NAME, dini_Get("CLRP/Houses/House2","Owner"));


Re: Array problem... - introzen - 29.12.2009

Quote:
Originally Posted by Harry_Gaill [adream-rp.com
]
format(HouseInfo[HouseID2][hOwner], MAX_PLAYER_NAME, dini_Get("CLRP/Houses/House2","Owner"));
It didn't work...


Re: Array problem... - MerLow - 29.12.2009

pawn Код:
format(HouseInfo[HouseID2][hOwner],MAX_PLAYER_NAME,"%s",dini_Get("CLRP/Houses/House2","Owner"));



Re: Array problem... - introzen - 29.12.2009

Quote:
Originally Posted by Merlо
pawn Код:
format(HouseInfo[HouseID2][hOwner],MAX_PLAYER_NAME,"%s",dini_Get("CLRP/Houses/House2","Owner"));
niether that one


Re: Array problem... - Harry_Gaill - 29.12.2009

You didn't give us enough information.

Also,
Quote:

dini_Get returns a string. I'm guessing that hOwner is an integer.