Set a string in a variable.
#1

I wonder if it's possible to set a string in a variable.

Something like this,
pawn Код:
Message[playerid] = "Message!";
I'm trying to look for a way to use this, but I actually do not know how.

So, if you feel like helping me, feel free to do so.
Reply
#2

Did yout try it?
Reply
#3

Quote:
Originally Posted by SkizzoTrick
Посмотреть сообщение
Did yout try it?
Yep, it gave the following error:
Код:
error 047: array sizes do not match, or destination array is too small
But, it's solved now. I didn't set the size to 255. Anyway, thanks for trying. o.o
(Stupid me *facepalm*)
Reply
#4

If you're trying to make a string for each playerid you will need a multidimensional array
Reply
#5

Nah, that script was an example. I won't use that ofcourse.

Since I'm posting already, if you feel like you could also take a look at my other help thread, I couldn't find a solution: https://sampforum.blast.hk/showthread.php?tid=194901
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)