problem with a string
#1

I am having a problem with a string this string in particulate

pawn Код:
printf("gaspumpuser = %s",gaspumpuser[count][gasstationid]);//remove
When my server loads it loads up till it hits 8 it must be some sort of out of bounds error here is the declaration of the string if I remove this line of code it will continue on in till it is finished loading

pawn Код:
new gaspumpuser[MAX_PLAYER_NAME][MAX_GASPUMPS][MAX_GASSTATIONS];
now since it hit 8 my MAX_GASPUMPS sizeof array is 8 so it might have something to do with that
and MAX_GASSTATIONS is 50 if you need that
Reply
#2

It is a three-dimensional array.

It is like that:


pawn Код:
printf("gaspumpuser = %s",gaspumpuser[count][gasstationid][/*BlahBlahBlah*/]);
Reply
#3

yes but the first dimension is a name witch is a string and I used the string symbol in the printf statement
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)