05.08.2010, 06:48
(
Последний раз редактировалось Agent Smith; 05.08.2010 в 08:08.
)
Hello again
I'm working on a report command which is stored in a MySQL database, etc. But I have a problem with trying to identify report ID's.
I'm getting these errors:
Line 1007:
Any help would be appericated
I'm working on a report command which is stored in a MySQL database, etc. But I have a problem with trying to identify report ID's.
pawn Код:
new query[126], strvalEx[126], result[126];
format(query,512,"SELECT `rid` FROM `reports` ORDER BY `id` DESC LIMIT 1;");
mysql_query(query);
mysql_store_result();
if(!mysql_num_rows())
{
playerinfo[playerid][report]=1;
}
else
{
while (mysql_fetch_row(result))
{
if((!strvalEx(result)%1000))
{
playerinfo[playerid][report]=1;
}
else
{
playerinfo[playerid][report]=strvalEx(result)+1;
}
}
}
Код:
C:\Documents and Settings\Admin\Desktop\World of GTA\test\gamemodes\test_new.pwn(1007) : error 012: invalid function call, not a valid address C:\Documents and Settings\Admin\Desktop\World of GTA\test\gamemodes\test_new.pwn(1007) : error 029: invalid expression, assumed zero C:\Documents and Settings\Admin\Desktop\World of GTA\test\gamemodes\test_new.pwn(1007) : warning 215: expression has no effect C:\Documents and Settings\Admin\Desktop\World of GTA\test\gamemodes\test_new.pwn(1007) : error 001: expected token: ";", but found ")" C:\Documents and Settings\Admin\Desktop\World of GTA\test\gamemodes\test_new.pwn(1007) : fatal error 107: too many error messages on one line
pawn Код:
if((!strvalEx(result)%1000))