Jump to content
  • 0

problema


CosminAK47

Question

Salut, am facut un fel de sistem de cersetori, dar cand creez cersetorul se salveaza coordonatele in baza de date corect unde ar fi trebuit sa stea , dar daca dau restart la srv dispare dar in baza raman coordonatele.

Aceata este comanda, poate nu am facut eu ceva corect

YCMD:createcersetor(playerid, params[], help) {
    if(PlayerInfo[playerid][pAdmin] >= 6) {
    GetPlayerPos(playerid, pcersetor[0], pcersetor[1], pcersetor[2]);
    cersetor = CreateActor(200, pcersetor[0], pcersetor[1], pcersetor[2], 0.0);
    new  query[256];
    format(query, sizeof(query), "INSERT INTO `cersetor` (`cersetorX`, `cersetorY`, `cersetorZ`) VALUES ('%f', '%f', '%f')", pcersetor[0], pcersetor[1], pcersetor[2]);
    mysql_tquery(SQL, query, "", "");
    ApplyActorAnimation(cersetor, "BEACH", "ParkSit_M_loop", 4.0, 1, 0, 0, 0, 0);
    CreatePlayer3DTextLabel(playerid,"{FFFFFF}Press {FF0000}Y{FFFFFF} to help this beggar",0x008080FF,pcersetor[0], pcersetor[1], pcersetor[2],10.0);
    SetPlayerPos(playerid, pcersetor[0], pcersetor[1], pcersetor[2]);
    }
    else return SCM(playerid, -1, AdminOnly);
    return 1;
}

Edited by Cosmink47

YouTube : Click

Discord : CosminAK47#8524

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

salut, posteaza codul in care incarci coordonatele din baza de date cand pornesti serverul, trebuie sa ai ceva de genul LoadCersetori();

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.