Showing but not showing
#1

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(string50"B_%s"playername);
           new 
UYearUMonthUDaygetdate(UYearUMonthUDay);
           new 
date[256];
           
format(datesizeof(date), "%d-%d-%d"UYearUMonthUDay);
           new 
tmmp[256], tem1[270], tem2[270], tmp3[270], tmp4[270];
           new 
maxdep dini_Int(AddDirFile(dir_bankfilesstring), "maxdep");
           
format(tem110"dstat_%d"maxdep);
           
format(tem210"wstat_%d"maxdep);
           
format(tmmp10"sstat_%d"maxdep);
           
format(tmp2sizeof(tmp2), "%s"dini_Int(AddDirFile(dir_bankfilesstring), tem1));
           
format(tmp3sizeof(tmp3), "%s"dini_Int(AddDirFile(dir_bankfilesstring), tem2));
           
format(tmp4sizeof(tmp4), "%s"dini_Int(AddDirFile(dir_bankfilesstring), tmmp));
           
format(str2sizeof(str2), "%d\t%d\t%s\t%d"tmp2tmp3tmp4date);
           
format(strsizeof(str), "In\tOut\tRecipite\tDate\n%s"str2);
       }
       return 
1;
    } 
Reply
#2

i don't get it, where's the sendclientmessage or showplayerdialog?
Reply
#3

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?
Reply
#4

it wont appear, there's not any functions to show such as message/dialog/print & etc.
Reply
#5

this code is making date in scriptfiles but not showing in game
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)