for() doesnt work (mysql_tquery)
#1

Код:
public OnGameModeInit()
{
mysql_tquery(mysql, "SELECT * FROM houses", "LoadHouse");
return 1;
}

forward LoadHouse();
public LoadHouse()
{
for(new i=1; i<47; i++)
{
printf("%i", i);
}
return 1;
}
what I get printed :
Код:
0
1
2
3
and so on...
Problem is that numbers should start with 1, not with 0... No matter what value I give to "new i" it always starts with zero
Reply


Messages In This Thread
for() doesnt work (mysql_tquery) - by Aa12 - 23.01.2016, 16:13
Re: for() doesnt work (mysql_tquery) - by Prokill911 - 23.01.2016, 16:18
Re: for() doesnt work (mysql_tquery) - by LetsOWN[PL] - 23.01.2016, 16:18
Re: for() doesnt work (mysql_tquery) - by Aa12 - 23.01.2016, 16:30
Re: for() doesnt work (mysql_tquery) - by amirm3hdi - 23.01.2016, 16:35
Re: for() doesnt work (mysql_tquery) - by LetsOWN[PL] - 23.01.2016, 16:37
Re: for() doesnt work (mysql_tquery) - by amirm3hdi - 23.01.2016, 16:42
Re: for() doesnt work (mysql_tquery) - by LetsOWN[PL] - 23.01.2016, 16:47
Re: for() doesnt work (mysql_tquery) - by amirm3hdi - 23.01.2016, 16:55
Re: for() doesnt work (mysql_tquery) - by Aa12 - 23.01.2016, 16:59

Forum Jump:


Users browsing this thread: 1 Guest(s)