Jump to content

Problema TAB


Angelin.

Recommended Posts

25 minutes ago, Ocelloth said:

Nu ai cum sa modifici acel text... e din codul SAMP-ului

Nu, deci nu ati inteles. Nu vreau sa modific acel TEXT, eu vreau ca sub text, in dreptul numelui sa imi apara STATS NOTE, eu am setat SCORE, se refera la score din game. Pe RPG au setat acolo sa fie level, ei bine eu vreau ceva asemanator.. si nu stiu cum sa ajung sa setez aia.

Link to comment
Share on other sites

16 hours ago, SkillZ_IT. said:

Te folosesti de SetPlayerScore daca la asta te referi

PlayerInfo[ playerid ][ LoggedIn ] = 1;
            session[ registrations ] = session[ registrations ] + 1;
            GivePlayerMoney( playerid, 500000 );
            SetPlayerScore( playerid, 50 );
            return ( 1 );

 

Am gasit asta, observ ca acel SetPlayerScore seteaza intradevar SCOR 50, asa e pe server. Am inlocuit cu ShowPlayer(StatsNote) ceva de genul era, dar degeaba. Am creeat si un cont nou si tot chestia aia mi-o arata.

Link to comment
Share on other sites

Acum 1 minut, Angelin. a spus:

PlayerInfo[ playerid ][ LoggedIn ] = 1;
            session[ registrations ] = session[ registrations ] + 1;
            GivePlayerMoney( playerid, 500000 );
            SetPlayerScore( playerid, 50 );
            return ( 1 );

 

Am gasit asta, observ ca acel SetPlayerScore seteaza intradevar SCOR 50, asa e pe server. Am inlocuit cu ShowPlayer(StatsNote) ceva de genul era, dar degeaba. Am creeat si un cont nou si tot chestia aia mi-o arata.

In loc de level vrei sa arate NONE? Nu cred ca merge, nivelul minim in samp este 0

Link to comment
Share on other sites

Just now, SkillZ_IT. said:

In loc de level vrei sa arate NONE? Nu cred ca merge, nivelul minim in samp este 0

Ba da, merge. Pe RS* sau XS* merge sa pui Stats Note, am schimbat si eu in trecut dar nu mai stiu unde trebuie sa ajung..

Link to comment
Share on other sites

SetPlayerScore(playerid, score);

 

playerid = id-ul jucatorului caruia doresti sa-i executi score-ul.

score = valoarea care doresti sa o aiba jucatorul ca scor.

Valoarea minima este 0.

 

Exemplu: 

public OnPlayerDeath(playerid, killerid, reason)
{
    // Add 1 to this killer's score. We must check it is valid first.
    if(killerid != INVALID_PLAYER_ID)
    {
        SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
    }
    return 1;
}
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.