07.07.2014, 09:11
Quote:
You are using "sizeof(szRows)" within the loop. The loop only runs once because using "sizeof" with a non-array variable returns 1, so try changing:
pawn Код:
pawn Код:
|
Edit:
Noticed when it done the "Loaded faction:" print that it loaded the same faction for X amount of rows, instead of the next faction. Although it loaded the next ID.
Example, I have in my database:
Код:
factionid factionname 12 Corrupt 11 Fire Department 10 Health Department
Код:
Loaded faction: Corrupt (12) Loaded faction: Corrupt (11) Loaded faction: Corrupt (10)
Nevermind, made a blonde mistake, noticed I was loading row 0 instead of 'i' for most of the information. *facepalm*