public Loadrumah() {
new num_rows,num_fields;
cache_get_data(num_rows,num_fields);
if(num_rows)
{
if(new r =0; r < sizeof(rInfo); r++)
{
RumahInfo[r][rumahID] = cache_get_field_content_int (1,"rumahID",mysqlku);
RumahInfo[r][pemilik] = cache_get_field_content (2,"pemilik",mysqlku);
}
}
return 1;
}
D:\data aji\Samp server\gamemodes\percobaan.pwn(131) : error 029: invalid expression, assumed zero
D:\data aji\Samp server\gamemodes\percobaan.pwn(131) : error 017: undefined symbol "r"
D:\data aji\Samp server\gamemodes\percobaan.pwn(131) : warning 215: expression has no effect
D:\data aji\Samp server\gamemodes\percobaan.pwn(131) : error 017: undefined symbol "r"
D:\data aji\Samp server\gamemodes\percobaan.pwn(131) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
if(new r =0; r < sizeof(rInfo); r++)
for(new r =0; r < sizeof(rInfo); r++)
This line
Код:
if(new r =0; r < sizeof(rInfo); r++) Fixed code: Код:
for(new r =0; r < sizeof(rInfo); r++) |
D:\data aji\Samp server\gamemodes\percobaan.pwn(132) : error 039: constant symbol has no size
thanks a lot
![]() i got this PHP код:
|
constant symbol has no size A variable has a size (measured in a number of cells), a constant has no size. That is, you cannot use a (symbolic) constant with the sizeof operator, for example. |