- 0
defectiune comanda /cpos
-
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
testX
Problema intalnita (descriere): Salut All, am creeat o comanda de editat coordonatele unui job pe SQL, nu imi da erori in joc/sau server_log,
de fiecare data cand vreau sa modific coordonatele unui job tot imi repeta mesajul :"/cjob [job id] [job pos x] [job pos y] [job pos z]" este trecuta pe ZCMD
Ero(area / rile) / warning-(ul / urile): nu da warning/eroare
Liniile de cod / sursa / script-ul(obligatoriu):
CMD:cpos(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
if(P_DATA[playerid][pAdmin] == 1339)
{
new string[256],
jid,
cposx,
cposy,
cposz;
if(sscanf(params, "iiii", jid, cposx, cposy, cposz)) return SCM(playerid,COLOR_GREY, SYNTAX_MESSAGE"/cjob [job id] [job pos x] [job pos y] [job pos z]");
mysql_format(mysql_db, string, sizeof(string), "UPDATE `jobs` SET jobPositionX = '%f', jobPositionY = '%f', jobPositionY = '%f' WHERE `jobID` = '%d' LIMIT 1", cposx, cposy, cposz, jid);
mysql_tquery(mysql_db, string);
format(string, sizeof(string),"Job ID: %d | PosX: %f | PosY: %f | PosZ: %f -> a fost UPDATAT cu succes.", jid, cposx, cposy, cposz);
SCM(playerid, -1, string);
}
else
{
SCM(playerid,-1,"Nu esti autorizat.");
return 1;
}
}
return 1;
}
am incercat si cu cposx[50] degeaba
Edited by iSkullImagini / Video (optional): -
Ati incercat sa rezolvati singur?: Da am incercat. M-am uitat si la comanda /gotoxyz sa vad cum este facuta si prin alte gm-uri dar nu am gasit nimik, am incercat sa pun si Float:cposx Float:cposy... etc si degeaba
11 answers to this question
Recommended Posts