Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Question

Posted

Am facut functia aceasta:

dcmd_myplate(playerid,params[])

{

if(PlayerInfo[playerid][pPcarkey] == 999)

{

SendClientMessage(playerid, COLOR_GREY,"  You don't have a vehicle to respray.");

return 1;

}

if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey])

{

new Float:x,Float:y,Float:z,Float:ang;

GetVehiclePos(GetPlayerVehicleID(playerid),x,y,z);

GetVehicleZAngle(GetPlayerVehicleID(playerid),ang);

if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,COLOR_RED,"You're not in a vehicle!");

ShowPlayerDialog(playerid,171,DIALOG_STYLE_INPUT,"{EE7777}Vehicle Numberplate","{00CC66}Input your new vehicle numberplate below.","Yes","Cancel");

return 1;

}

else

{

SendClientMessage(playerid, COLOR_GREY, "  You are not in you're personal car!");

return 1;

}

}

Dar nu inteleg dc nu se salveaza decat o singura litera....

9 answers to this question

Recommended Posts

Posted

1. Nu e o functie ceea ce ai facut tu, este o Comanda( DCMD Processor )

2. Nu se zice 'sting' ci string.


Dane Dialog-ul 171.

142sj0l.png

Underground-GFX

Posted

E o comanda ma, ca sa o folosesti nu scrii "/myplate" in joc, deci e o comanda 8-|..


Imi dai azi Dialog-ul 171... Nu sunt magician sa ghicesc, dar pentru voi sar putea sa devin...

142sj0l.png

Underground-GFX

Posted

if(dialogid == 171)

{

if(response)

{

            new Float:x,Float:y,Float:z,Float:ang;

new idcar = GetPlayerVehicleID(playerid);

            SetVehicleNumberPlate(GetPlayerVehicleID(playerid), inputtext);

GetVehiclePos(GetPlayerVehicleID(playerid),x,y,z);

GetVehicleZAngle(GetPlayerVehicleID(playerid),ang);

SetVehicleToRespawn(GetPlayerVehicleID(playerid));

SetVehiclePos(GetPlayerVehicleID(playerid),x,y,z);

SetVehicleZAngle(GetPlayerVehicleID(playerid),ang);

    strmid(CarInfo[idcar][cLicense], inputtext, 0, strlen(inputtext), 999);

SaveCarCoords();

OnPropUpdate();

}

}

Posted

mam uitat eu pe mess la comanda...si nu avea nici un string...

mareste de la OnPropUpdate(); :

new coordsstring[256];
in:
new coordsstring[1024];//sau mai mic...

Fara reclama in semnatura!

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.