4 registered members (ozgur, Ayumi, VHX, monarch),
1,161
guests, and 4
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
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
|
|
|
Entire Thread
|
Online Highscore System - all in one (lite-c, DLL, PHP)
|
TSG_Torsten
|
04/19/10 19:39
|
Re: Online Highscore System - all in one (lite-c, DLL, PHP)
|
Superku
|
04/19/10 22:27
|
Re: Online Highscore System - all in one (lite-c, DLL, PHP)
|
Cecia
|
04/22/10 17:49
|
Re: Online Highscore System - all in one (lite-c, DLL, PHP)
|
Widi
|
04/22/10 17:52
|
Re: Online Highscore System - all in one (lite-c, DLL, PHP)
|
TSG_Torsten
|
04/22/10 21:24
|
Re: Online Highscore System - all in one (lite-c, DLL, PHP)
|
Tempelbauer
|
04/23/10 11:12
|
Re: Online Highscore System - all in one (lite-c, DLL, PHP)
|
TSG_Torsten
|
04/26/10 19:16
|
Re: Online Highscore System - all in one (lite-c, DLL, PHP)
|
darkinferno
|
04/30/10 09:57
|
Re: Online Highscore System - all in one (lite-c, DLL, PHP)
|
TSG_Torsten
|
05/01/10 13:31
|
Re: Online Highscore System - all in one (lite-c, DLL, PHP)
|
Liamissimo
|
06/30/10 19:05
|
Re: Online Highscore System - all in one (lite-c, DLL, PHP)
|
Liamissimo
|
06/30/10 19:09
|
Re: Online Highscore System - all in one (lite-c, DLL, PHP)
|
TSG_Torsten
|
07/21/10 09:54
|
Re: Online Highscore System - all in one (lite-c, DLL, PHP)
|
Liamissimo
|
07/21/10 10:09
|
Re: Online Highscore System - all in one (lite-c, DLL, PHP)
|
Liamissimo
|
12/14/10 10:42
|
Re: Online Highscore System - all in one (lite-c, DLL, PHP)
|
Joozey
|
12/14/10 12:02
|
Re: Online Highscore System - all in one (lite-c, DLL, PHP)
|
Liamissimo
|
12/14/10 19:04
|
|
|