whats a stock and whats a callback? i mean both are used the same way.
also i need help with this code.
Код:
LoadMap(playerid)
{
new query[256],tmp;
format(query,256,"SELECT * FROM 'map'");
mysql_query(query);
mysql_store_result();
tmp=mysql_num_rows();
for(new i=mysql_retrieve_row();i<tmp;i++)
{
new field[6][32];
if(mysql_num_rows()==0) continue;
mysql_fetch_row_format(query , "|");
explode(query , field, "|");
new Float:x,Float:y,Float:z,t,id;
id=strval(field[0]);
x=strval(field[1]);
y=strval(field[2]);
z=strval(field[3]);
t=strval(field[4]);
SetPlayerMapIcon(playerid,id,x,y,z,t,0xFFFFFF00,MAPICON_LOCAL);
}
mysql_free_result();
return 1;
}
all that code is under onplayerconneck no errors or warnings. it doesnt load the map icons