#1

pawn Код:
APlayerData[clickedplayerid][StatsTruckerJobs]);
APlayerData[clickedplayerid][StatsPilotJobs]);
I need to make a command that shows a info of these..
Example i wrote /stats
Then it sendmessagetoplayer
with these stats:
Delivered:
Flewed:

Uh, i need help..

pawn Код:
CMD:stats(playerid, params[])
    {
       if( !IsPlayerConnected( playerid ) )
        {
         
        }
           return 1;
    }
Reply
#2

Maybe its not possible ? I see nobody want help me :/
Reply
#3

pawn Код:
CMD:stats(playerid, params[])
{
    new string[128];
    format(string, sizeof(string), "Delivered: %d\nFlewed: %d", APlayerData[playerid][StatsTruckerJobs], APlayerData[playerid][StatsPilotJobs]);
    SendClientMessage(playerid, -1, string);
    return 1;
}
I'm not sure if this is what you want, if not, explain more.
Reply
#4

OMG ur awesum thanks.
Reply
#5

And can you give please example of dialog list ?
Reply
#6

Where is my bad?

pawn Код:
CMD:stats2(playerid, params[])
{
    new string[128];
    format(string, sizeof(string), "Delivered loads: %d\nFlown loads: %d", APlayerData[playerid][StatsTruckerJobs], APlayerData[playerid][StatsPilotJobs]);
    ShowPlayerDialog(playerid,-1,DIALOG_STYLE_MSGBOX, string);
    return 1;
}
Reply
#7

pawn Код:
CMD:stats2(playerid, params[])
{
    new string[128];
    format(string, sizeof(string), "Delivered loads: %d\nFlown loads: %d", APlayerData[playerid][StatsTruckerJobs], APlayerData[playerid][StatsPilotJobs]);
    ShowPlayerDialog(playerid, 9999, DIALOG_STYLE_MSGBOX, "Stats", string, "OK", "");
    return 1;
}
Reply
#8

Код:
CMD:stats2(playerid, params[])
{
    new string[128];
    format(string, sizeof(string), "Delivered loads: %d\nFlown loads: %d", APlayerData[playerid][StatsTruckerJobs], APlayerData[playerid][StatsPilotJobs]);
    ShowPlayerDialog(playerid,-1,DIALOG_STYLE_MSGBOX, string);
    return 1;
}
As far as I know the dialog ID can't be below 0.( you wrote -1)
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)