Showing but not showing - 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: Showing but not showing (
/showthread.php?tid=648832)
Showing but not showing -
BulletRaja - 29.01.2018
i had created an stats system its not showing me dates help please
code here
PHP код:
if (dialogid == DIALOG_BANKSTATES)
{
if (response)
{
new str[1080], str2[1080];
format(string, 50, "B_%s", playername);
new UYear, UMonth, UDay; getdate(UYear, UMonth, UDay);
new date[256];
format(date, sizeof(date), "%d-%d-%d", UYear, UMonth, UDay);
new tmmp[256], tem1[270], tem2[270], tmp3[270], tmp4[270];
new maxdep = dini_Int(AddDirFile(dir_bankfiles, string), "maxdep");
format(tem1, 10, "dstat_%d", maxdep);
format(tem2, 10, "wstat_%d", maxdep);
format(tmmp, 10, "sstat_%d", maxdep);
format(tmp2, sizeof(tmp2), "%s", dini_Int(AddDirFile(dir_bankfiles, string), tem1));
format(tmp3, sizeof(tmp3), "%s", dini_Int(AddDirFile(dir_bankfiles, string), tem2));
format(tmp4, sizeof(tmp4), "%s", dini_Int(AddDirFile(dir_bankfiles, string), tmmp));
format(str2, sizeof(str2), "%d\t%d\t%s\t%d", tmp2, tmp3, tmp4, date);
format(str, sizeof(str), "In\tOut\tRecipite\tDate\n%s", str2);
}
return 1;
}
Re: Showing but not showing -
RogueDrifter - 29.01.2018
i don't get it, where's the sendclientmessage or showplayerdialog?
Re: Showing but not showing -
denNorske - 29.01.2018
Does the file exist under scriptfiles?
Have you checked if the dates are fetched properly from the file? A good place to start could be to debug the code and take it step by step, in order to find out what's wrong.
Where is your print or message?
Re: Showing but not showing -
Mugala - 29.01.2018
it wont appear, there's not any functions to show such as message/dialog/print & etc.
Re: Showing but not showing -
BulletRaja - 29.01.2018
this code is making date in scriptfiles but not showing in game