Help Me Please , for text
#1

if i want to insert text in variable example.

i have text "Yakuza"

i want to insert it to variable A

what should i do ?
Reply
#2

I THINK you can do:

pawn Код:
new string[7];
string = "Yakuza";
I don't use string variables for one word normally

Or do you mean #define?

If all else fails, see this: https://sampwiki.blast.hk/wiki/Format
Reply
#3

Quote:
Originally Posted by Mikep.
I THINK you can do:

pawn Код:
new string[7];
string = "Yakuza";
This will only work if the 2 arrays lenght in cells are the same

Quote:
Originally Posted by Mikep.
If all else fails, see this: https://sampwiki.blast.hk/wiki/Format
Use this and you wont have any trouble
Reply
#4

pawn Код:
new string[] = "Yakuza";
= win

pawn Код:
new string[7];
format(string, sizeof(string), "Yakuza");
= fail

pawn Код:
new string[] = {89, 97, 107, 117, 122, 97, 0}
= now that's my kind of fail
Reply
#5

Your method only works when declaring
Reply
#6

Quote:
Originally Posted by dice7
Quote:
Originally Posted by Mikep.
I THINK you can do:

pawn Код:
new string[7];
string = "Yakuza";
This will only work if the 2 arrays lenght in cells are the same

Quote:
Originally Posted by Mikep.
If all else fails, see this: https://sampwiki.blast.hk/wiki/Format
Use this and you wont have any trouble
They're.
Reply
#7

Thx for every comment, i can do it now. thx again
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)