- 0
defectiune comanda /cpos
-
Similar Content
-
- 4 replies
- 128 views
-
- 1 reply
- 91 views
-
Comanda /spec
By VAurel,
- 4 answers
- 257 views
-
- 4 answers
- 611 views
-
- 3 replies
- 277 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
iSkull
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;
}
Imagini / 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 am incercat si cu cposx[50] degeaba
Link to comment
Share on other sites
11 answers to this question
Recommended Posts