Bugged dynamic string
#1

Hi guys, I'm here with a seriously problem with my characters string. That string should be this format (in dialog):

"1st pg"
"2d pg"
"3d pg"

But sometimes the names are duplicates. Ex:
"John Doe"
"John Doe"
"Hello Hello"
"Hello Hello"

Code of loading string: http://pastebin.com/fmRDgNDs
Reply
#2

The variable was been duplicated because you put it in a loop.
Reply
#3

Quote:
Originally Posted by Galletziz
Посмотреть сообщение
The variable was been duplicated because you put it in a loop.
I don't understand, sorry. Can you give me a example?
Reply
#4

Sbagli proprio procedimento comunque...
Reply
#5

You need reset variable before load

pawn Код:
AccountInfo[playerid][aCharacters][0] = EOS;
for(new j=0; j < count[playerid]; j++)
{
// your code
}
Reply
#6

Solved.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)