Stats - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Stats (
/showthread.php?tid=476438)
Stats -
EvoGT - 18.11.2013
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;
}
Re: Stats -
EvoGT - 18.11.2013
Maybe its not possible ? I see nobody want help me :/
Re: Stats -
]Rafaellos[ - 18.11.2013
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.
Re: Stats -
EvoGT - 18.11.2013
OMG ur awesum thanks.
Re: Stats -
EvoGT - 18.11.2013
And can you give please example of dialog list ?
Re: Stats -
EvoGT - 18.11.2013
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;
}
Re: Stats -
]Rafaellos[ - 18.11.2013
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;
}
Re: Stats -
Beckett - 18.11.2013
Код:
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)