Quote:
Today at 10:56 PM gengar003 said this in Post #816
Ive seen others with similar problems, but no answer I understoood... I've made a game in flash that works, and added in the code provided, it is as follows:
// set up vars to return
vpaver = "100B2";
scorevariable = chipsdenom;
action = "gameover";
game = scrawps;
score_loc = "http://pgsforum.com/vb/proarcade.php";
// this needs to match the Admin CP value
// and should be between 0 and 31
hashoffset = 5;
// do security shuffle to return newhash
subhash1 = gamehash.substr(0, hashoffset);
subhash2 = gamehash.substr(hashoffset);
newhash = subhash2.concat(subhash1);
and I have this:
// redirect back to vbProArcade
getURL (score_loc, "_self", "POST");
on the gameover frame.
now, I've uploaded it, filled in the variables in Admin CP to the best of my knowledge, and I get this after playing:
vbProArcade Error: Invalid game name specified (todo: put something pretty here later)
what do I do?
P.S. -- in case you didn't read above, I KNOW others have had this problem, but I don't get what the soloution was.... please help me. I have other games I'd like to add to my arcade, but don't want them all to have this problem... 
edit: if you need to take a look at the .fla file (although I hope it's not that big of a problem) PM me.
|
copy and paste this:
PHP Code:
// set up vars to return
vpaver = "100B2";
scorevariable = score;
action = "gameover";
game = gamename;
score_loc = location + "/proarcade.php";
// this needs to match the Admin CP value
// and should be between 0 and 31
hashoffset = 5;
// do security shuffle to return newhash
subhash1 = gamehash.substr(0,hashoffset);
subhash2 = gamehash.substr(hashoffset);
newhash = subhash2.concat(subhash1);
// redirect back to vbProArcade
getURL (score_loc, "_self", "POST");
only change scorevariable:
PHP Code:
scorevariable = score;
to the scorevariable in the game. DO NOT change score.

I hope this helps you.
what game are you trying to modify anyway?