public Loadrumah() {
new num_rows,num_fields;
cache_get_data(num_rows,num_fields);
if(num_rows)
{
for(new r=0; r < cache_get_row_count(); r++)
{
RumahInfo[r][rumahID] = cache_get_row_int (r, 0);
RumahInfo[r][pemilik] = cache_get_row (r ,1);
}
}
return 1;
}
D:\data aji\Samp server\gamemodes\percobaan.pwn(135) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning.
cache_get_row(row, field_idx, destination[], connectionHandle = 1, max_len = sizeof(destination))
public Loadrumah() { new num_rows,num_fields; cache_get_data(num_rows,num_fields); if(num_rows) { for(new r=0; r < cache_get_row_count(); r++) { RumahInfo[r][rumahID] = cache_get_row_int (r, 0); RumahInfo[r][pemilik] = cache_get_row_int (r ,1); } } return 1; }
Код:
cache_get_row(row, field_idx, destination[], connectionHandle = 1, max_len = sizeof(destination)) If the other line is a int you need you can just go Код:
public Loadrumah() { new num_rows,num_fields; cache_get_data(num_rows,num_fields); if(num_rows) { for(new r=0; r < cache_get_row_count(); r++) { RumahInfo[r][rumahID] = cache_get_row_int (r, 0); RumahInfo[r][pemilik] = cache_get_row_int (r ,1); } } return 1; } |
public Loadrumah() { new num_rows,num_fields; cache_get_data(num_rows,num_fields); if(num_rows) { for(new r=0; r < cache_get_row_count(); r++) { RumahInfo[r][rumahID] = cache_get_row_int (r, 0); cache_get_row(r, 1, RumahInfo[r][pemilik]); } } return 1; }
cache_get_row(row, field_idx, destination[], connectionHandle = 1, max_len = sizeof(destination))
RumahInfo[r][pemilik] = cache_get_row_int (r ,1);
cache_get_row(r, 1, RumahInfo[r][pemilik]);
RumahInfo[r][pemilik]
RumahInfo[r][pemilik] = cache_get_row_int(r ,1);
cache_get_row(r, 1, RumahInfo[r][pemilik]);
What is this variable?:
Код:
RumahInfo[r][pemilik] Код:
RumahInfo[r][pemilik] = cache_get_row_int(r ,1); Код:
cache_get_row(r, 1, RumahInfo[r][pemilik]); @Edit Jess was faster ![]() |