Jump to content

Question

Posted

Nick: xStyle

Problema: Vreau ca atunci cand un player vrea sa-si schimbe numele sa foloseasca o comanda care sa-i salveze levelu ore vip etc fara sa mai umblu prin baza de date sau sa ii dea un admin /setname. Comanda /newname

Erori / warnings:

Lini/script: Nu are rost sa le pun pentru ca nu sunt bune. :(

Ai incercat sa rezolvi singur ?: da, tot nu resusesc.

 

logo.png

8 answers to this question

Recommended Posts

Posted

Da-ne liniile / codul. Nu iti face nimeni comanda.

Am sters ce am incercat pt ca mi-a zis cineva ca nu e bine

 

logo.png

  • Administrator
Posted

Am sters ce am incercat pt ca mi-a zis cineva ca nu e bine

Pai tie nu ti se salveaza in baza de date?

Ce folosesti, ZCMD sau STRCMP?

Posted

Pai tie nu ti se salveaza in baza de date?

Ce folosesti, ZCMD sau STRCMP?

Folosesc ZCMD da nu am facut backup

 

logo.png

Posted

SSCANF folosesti? :)

Da folosesc. Imi cer scuze dar nu vreau din adins sa fac spam

// Din gresala edit...

 

logo.png

  • Administrator
Posted

Da folosesc. Imi cer scuze dar nu vreau din adins sa fac spam

Uite:

[pawn]CMD:newname(playerid, params)

{

new NumeNou[MAX_PLAYER_NAME];

if(sscanf("s[30]", NumeNou))

    return SendClientMessage(playerid, -1, "Introdu numele nou.");

   

    SetPlayerName(playerid, NumeNou);

   

    // De aici adaugi tu tot ce trebuie sa-i updateze numele in baza de date!

   

    return 1;

}[/pawn]

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.