Типа не соответствие типов...
PHP код:
#include <a_samp>
main() {}
new DB:db;
public OnGameModeInit()
{
db=db_open("maindb");
return 1;
}
public OnGameModeExit()
{
db_close(db);
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_WALK)
{
new DBResult:dbresult;
dbresult=db_query(db, "select posx,posy,posz from businesses");
new string[23];
do
{
format(string, sizeof(string), "X=%i Y=%i Z=%i",db_get_field_assoc_int("posx"),db_get_field_assoc_int("
posy"),db_get_field_assoc_int("posz")); //### error 035: argument type mismatch (argument 1) ###
SendClientMessage(playerid, -1, string);
}
while(db_next_row(dbresult));
db_free_result(dbresult);
}
return 1;
}