- 0
problema
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
Question
CosminAK47
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) {
Edited by Cosmink47if(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;
}
YouTube : Click
Discord : CosminAK47#8524
3 answers to this question
Recommended Posts