House update problem
#1

Код:
if(strcmp(cmd, "/evekle", true) == 0)
 {
    mysql_query("SELECT null FROM evler");
    mysql_store_result();
 new eid = mysql_num_rows();
 new Float:X,Float:Y,Float:Z;
 GetPlayerPos(playerid,X,Y,Z);
 new string[250];
    format(string,sizeof(string),"INSERT INTO `evler` (`esahip`,`ex`,`ey`,`ez`,`efiyat`,`eint`,`eex`,`eey`,`eez`) VALUES ('Bulunmuyor','%f','%f','%f','1234','1','244.411987','305.032989','999.148437')",X,Y,Z);
    mysql_query(string);
    //new fiyat = EvBilgiInt(playerid,"efiyat");
    new yazi[256];
    format(yazi,sizeof(yazi),"Ev");
 EvLabel[eid] = Create3DTextLabel(yazi,0xFFFFFFFF,X,Y,Z,30.0,0);
 BilgiMesajiGonder(playerid,"Başarıyla ev eklendi.");
    mysql_free_result();
    return 1;
    }
Код:
public EvYukle()
{
//Ev yьkleme
new arat[300];
format(arat,sizeof(arat),"SELECT * FROM evler ORDER BY id ASC");
mysql_query(arat);
mysql_store_result();
Evsayi = mysql_num_rows()+1;
for(new i= 1; i < Evsayi; i++)
{
new
Float:X,
Float:Y,
Float:Z;
EvBilgiFlo(i,"ex",X);
EvBilgiFlo(i,"ey",Y);
EvBilgiFlo(i,"ez",Z);
EvLabel[i] = Create3DTextLabel("Ev",0xFFFFFFFF,X,Y,Z,30.0,0);
}
return 1;
}
Houses not updated help me
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)