Jump to content
  • 0

Intrebare legata de Vehicles Id's


Question

Guest YazoHoo
Posted

Intrebarea mea este : Daca se paote determina id'ul unei masini , in timp ce esti pe server . Pe alte forumuri , am vazut o comanda de genul /carid , dar la mine nu merge . V-as ramane recunoscator daca m-ati ajuta .

4 answers to this question

Recommended Posts

Posted

Uite comanda:

if(strcmp(cmdtext, "/carid", true)==0)
{
     new string[128];
     format(string, 128, "Your vehicle's id is: %d", GetPlayerVehicleID);
     SendClientMessage(playerid, CULOARE, string);
}

*CULOARE - o inlocuiesti cu ce culoare vrei tu

Guest YazoHoo
Posted

Cand aduag comanda primesc urmatoarea eroare

"error 076: syntax error in the expression, or invalid function call"

Are cineva idei despre ce i-as putea face ?

Posted

Cand aduag comanda primesc urmatoarea eroare

"error 076: syntax error in the expression, or invalid function call"

Are cineva idei despre ce i-as putea face ?

scz, nu-l testasem, uite cum e corect:

if(strcmp(cmdtext, "/carid", true)==0)
{
     new string[128];
     new vehicleid = GetPlayerVehicleID(playerid);
     format(string, sizeof(string), "Your vehicle's id is:", vehicleid);
     SendClientMessage(playerid, CULOARE, string);
     return 1;
}

Guest YazoHoo
Posted

Acum nu imi da Id'ul Masinii , iar dupa ce am modifact vehicleid , cum ai pus in al doilea post cu GEtPlayerVehicleId cum ai pus in primul , primessc din nou o eroare . error 076: syntax error in the expression, or invalid function call

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.