Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: |LOB| Robi.pwn poslato April 09, 2013, 11:56:58 PRE PODNE

Naslov: [Pomoc] Prebacivanje statsa u dialog?
Poruka od: |LOB| Robi.pwn poslato April 09, 2013, 11:56:58 PRE PODNE
Skripta koju koristim:Moj gm od 0
Detaljan opis problema:Zanima me kako da prebacim stats u dialog
Dio skripte:

CMD:stats(playerid, params[])
{
    SendClientMessage(playerid, 0xFFFFFFFF, " |- - - - - - - - - - - - - - - - - - - |");
    new string[128];
    new aname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, aname,sizeof(aname));
    format(string,sizeof(string), "%s These are your stats:", aname);
    SendClientMessage(playerid, 0xFFFFFFFF,string);
    format(string,sizeof(string), "- Cash: %i", GetPlayerMoney(playerid));
    SendClientMessage(playerid, 0xFFFFFFFF, string);
    format(string,sizeof(string), "- Kills: %i", PlayerInfo[playerid][pUbojstva]);
    SendClientMessage(playerid, 0xFFFFFFFF, string);
    format(string,sizeof(string), "- Deaths: %i", PlayerInfo[playerid][pSmrti]);
    SendClientMessage(playerid, 0xFFFFFFFF, string);
    format(string,sizeof(string), "- Admin Level: %i", PlayerInfo[playerid][pAdmin]);
    SendClientMessage(playerid, 0xFFFFFFFF, string);
    format(string,sizeof(string), "- Admin Level: %i", PlayerInfo[playerid][pLider]);
    SendClientMessage(playerid, 0xFFFFFFFF, string);
    format(string,sizeof(string), "- Admin Level: %i", PlayerInfo[playerid][pRank]);
    SendClientMessage(playerid, 0xFFFFFFFF, string);
    format(string,sizeof(string), "- Admin Level: %i", PlayerInfo[playerid][pMember]);
    SendClientMessage(playerid, 0xFFFFFFFF, string);
    SendClientMessage(playerid, 0xFFFFFFFF, " |- - - - - - - - - - - - - - - - - - - |");
    return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):
Naslov: Odg: [Pomoc] Prebacivanje statsa u dialog?
Poruka od: CkusaColeCM poslato April 09, 2013, 12:04:52 POSLE PODNE
Moras napravit dialog http://wiki.sa-mp.com/wiki/ShowPlayerDialog
I moras napravit CMD da kad igrac napise da mu se taj dialog pokaze ;)