• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] issue with forEach
#2
Because your Rows are not defined as an Iterator; but seeing as cache_num_rows() only returns a single integer, there is no reason to use it for that purpose.
Code:
mysql_query(rxdm,"SELECT * FROM `props`");
new Rows = cache_num_rows();
if(Rows) {
    for(new i = 0; i < Rows; i++)
    {
  Reply


Messages In This Thread
issue with forEach - by CJ101 - 2024-01-19, 12:16 AM
RE: issue with forEach - by Threshold - 2024-01-19, 03:58 AM
RE: issue with forEach - by alberta5 - 2024-07-25, 06:17 AM

Forum Jump: