SA-MP Forums Archive
String within arrays - 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: String within arrays (/showthread.php?tid=343396)



String within arrays - Killer#Mummy - 17.05.2012

Hi! I have a little tricky question:

I want to create a string with certain size within array but it doesn't work. Any questions how to fix this?

The code below works:
Код:
enum MapData
{
...
mPickup_Text[MAX__PICKUPS],
...
}
new Map[MAX_MAPS][MapData];
The code below not work (but I must have it):
Код:
enum MapData
{
...
mPickup_Text[MAX__PICKUPS][64],
...
}
new Map[MAX_MAPS][MapData];



Re: String within arrays - Killer#Mummy - 18.05.2012

Bump, please I need this to be solved .


Re: String within arrays - Catalyst- - 18.05.2012

I'm not sure if it's possible to do it like you're trying to, do this instead...
pawn Код:
new mPickup_Text[MAX__PICKUPS][64];