Array problem...
#1

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...
Reply
#2

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

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
Reply
#4

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];
Reply
#5

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
Reply
#6

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

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...
Reply
#8

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

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

You didn't give us enough information.

Also,
Quote:

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

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)