|
Re: Online Highscore System - all in one (lite-c, DLL, PHP)
[Re: Liamissimo]
#330909
06/30/10 19:09
06/30/10 19:09
|
Joined: Jul 2009
Posts: 1,198 Berlin, Germany
Liamissimo
Serious User
|
Serious User
Joined: Jul 2009
Posts: 1,198
Berlin, Germany
|
I also set that public users can write to it
"Ich weiss nicht genau, was Sie vorhaben, aber Sie können keine Triggerzonen durch Ihr Level kullern lassen." -JCL, 2011
|
|
|
Re: Online Highscore System - all in one (lite-c, DLL, PHP)
[Re: TSG_Torsten]
#334108
07/21/10 10:09
07/21/10 10:09
|
Joined: Jul 2009
Posts: 1,198 Berlin, Germany
Liamissimo
Serious User
|
Serious User
Joined: Jul 2009
Posts: 1,198
Berlin, Germany
|
Everything works, I had the Free Version, surprise surprise
"Ich weiss nicht genau, was Sie vorhaben, aber Sie können keine Triggerzonen durch Ihr Level kullern lassen." -JCL, 2011
|
|
|
Re: Online Highscore System - all in one (lite-c, DLL, PHP)
[Re: Liamissimo]
#350174
12/14/10 10:42
12/14/10 10:42
|
Joined: Jul 2009
Posts: 1,198 Berlin, Germany
Liamissimo
Serious User
|
Serious User
Joined: Jul 2009
Posts: 1,198
Berlin, Germany
|
Sorry, again a question. It seems like after I finished a level he is taking the old score and put they also in the new score table. So in level 1 I had 95 score, in level 2 78 but it also shows my 95 from before.
return_code = webscore_send(pname,level_name,str_for_num(NULL,score),str_for_num(NULL,zeit));
if(return_code==-1) error("Upload: Missing DLL");
else if(return_code==-2) error("Upload: No Connection");
else if(return_code==-3) error("Upload: Wrong Key");
else if(return_code==-4) error("Upload: Wrong Data/URL");
return_code=webscore_get("temp.txt",level_name); // Get Scores from score table my_scores to temp.txt
if(return_code==-1) error("Download: Missing DLL");
else if(return_code==-2) error("Download: No Connection");
else if(return_code==-3) error("Download: Wrong Key");
else if(return_code==-4) error("Download: Wrong Data/URL");
else
{
STRING* temp_str; // To store our score entries
var i,j;
for(i=0;1;i++)
{
temp_str=webscore_get_line("temp.txt",i); // Read score
if(str_cmp(temp_str,"")) break;
str_cat(scores_name,"\n"); // add a line break to the score output table
str_cat(scores_points,"\n");
str_cat(scores_time,"\n");
str_cat(scores_name,webscore_get_index(temp_str,0)); // Read the name from the entry
str_cat(scores_points,webscore_get_index(temp_str,1)); // Read the score from the entry
str_cat(scores_time,webscore_get_index(temp_str,2)); // Read the time from the entry
}
}
file_delete("temp.txt");
But I can't explain why, it deletes temp and so on?
"Ich weiss nicht genau, was Sie vorhaben, aber Sie können keine Triggerzonen durch Ihr Level kullern lassen." -JCL, 2011
|
|
|
Re: Online Highscore System - all in one (lite-c, DLL, PHP)
[Re: Joozey]
#350238
12/14/10 19:04
12/14/10 19:04
|
Joined: Jul 2009
Posts: 1,198 Berlin, Germany
Liamissimo
Serious User
|
Serious User
Joined: Jul 2009
Posts: 1,198
Berlin, Germany
|
Sorry, my fault, I had to reset the strings every time, I have implemented it in Lift it Up!
"Ich weiss nicht genau, was Sie vorhaben, aber Sie können keine Triggerzonen durch Ihr Level kullern lassen." -JCL, 2011
|
|
|
|