Hello,
Code:
public Action:Initiative(Handle:timer)
{
decl String:query[300];
new Handle:Get;
new i = 1;
while (i > 0 && i <= 12)
{
Format(query, sizeof(query), "SELECT capital FROM `Roleplay_Job` WHERE `id` = %i", i);
Get = SQL_Query(db_rp, query);
if (Get)
{
while (SQL_FetchRow(Get))
{
capital[i] = SQL_FetchInt(GetCapital, 0);
}
}
}
CloseHandle(Get);
}
Why when I create a virtual I, it only takes into account that two and two?
For example
1 is ok
2 isn't ok
3 is ok
4 isn't ok
...
etc..
Sorry for my bad English, i'm French.
Thanks in advance.
__________________