A printf stopping a loop from displaying results?
#1

pawn Код:
for(new w = 0; w < 13; w++)
                {
                    new string[12];
                    format(string, sizeof(string), "Weapon%d", w);
                    mysql_get_field(string, QueryString);
                    PlayerWeapons[playerid][w] = strval(QueryString);
                    printf("Slot: %d, Weapon SQLID: %d, WeaponINDEX: %d",w , PlayerWeapons[playerid][w],GetWepIndexFromSQL(PlayerWeapons[playerid][w]));
                }
The Printf's print, but no data is in the result. And therefore I don't get any weapons. When I remove the Printf it works perfectly. Putting it outside the loop doesn't work.
Reply


Messages In This Thread
A printf stopping a loop from displaying results? - by Dokins - 26.01.2015, 22:54
Re: A printf stopping a loop from displaying results? - by Dokins - 27.01.2015, 12:37
Re: A printf stopping a loop from displaying results? - by BroZeus - 27.01.2015, 13:33

Forum Jump:


Users browsing this thread: 1 Guest(s)