Bugged dynamic string - 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: Bugged dynamic string (
/showthread.php?tid=548879)
Bugged dynamic string -
iShawn - 03.12.2014
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
Re: Bugged dynamic string -
Galletziz - 03.12.2014
The variable was been duplicated because you put it in a loop.
Re: Bugged dynamic string -
iShawn - 03.12.2014
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?
Re: Bugged dynamic string -
Galletziz - 03.12.2014
Sbagli proprio procedimento comunque...
Re: Bugged dynamic string -
Jefff - 03.12.2014
You need reset variable before load
pawn Код:
AccountInfo[playerid][aCharacters][0] = EOS;
for(new j=0; j < count[playerid]; j++)
{
// your code
}
Re: Bugged dynamic string -
iShawn - 04.12.2014
Solved.