how to load strings from mysql?
#7

Quote:
Originally Posted by THE_KNOWN
Посмотреть сообщение
i didnt get you. i just removed strval and it says it should be assigned to an array
Well that error would suggest that you didn't even make those variables an array, so how are they going to store the string as one character takes up each cell!

You need to initialize the arrays with enough cells to hold the information.

For example:

pawn Код:
new oname[MAX_PLAYERS][24];
DVDK's fix will not work unless you have initialized them as a multi-dimensional array either.
Reply


Messages In This Thread
how to load strings from mysql? - by THE_KNOWN - 03.02.2011, 15:55
Re: how to load strings from mysql? - by DVDK - 03.02.2011, 16:00
Re: how to load strings from mysql? - by THE_KNOWN - 03.02.2011, 16:08
Re: how to load strings from mysql? - by JaTochNietDan - 03.02.2011, 16:13
Re: how to load strings from mysql? - by THE_KNOWN - 03.02.2011, 16:39
Re: how to load strings from mysql? - by DVDK - 03.02.2011, 17:19
Re: how to load strings from mysql? - by JaTochNietDan - 03.02.2011, 17:30
Re: how to load strings from mysql? - by THE_KNOWN - 04.02.2011, 01:03
Re: how to load strings from mysql? - by PeteShag - 04.02.2011, 01:25
Re: how to load strings from mysql? - by THE_KNOWN - 04.02.2011, 10:32

Forum Jump:


Users browsing this thread: 1 Guest(s)