Yea it is.
"At adress 0043CC2Bh by attempting to read from adress 9F763A48h"
EDIT: Maybe I gotta put [p.localPlayerID]? I tested that with the blaster reloading script, if I remove all the p.localPlayerID it crashes, if I have them, it works fine. I'll test that.
EDIT 2: Still not working...
Also here's the new magic code:
Code:
bool access = true;
class savedGems {
savedGems() {
red = green = blue = 0;
}
int red;
int green;
int blue;
};
array gemsArray(4);
void onPlayer(jjPLAYER@ p) {
reloadBlaster(p);
switch(p.health) {
case 0:
if (access) {
gemsArray[p.localPlayerID].red = p.gems[GEM::RED];
gemsArray[p.localPlayerID].green = p.gems[GEM::GREEN];
gemsArray[p.localPlayerID].blue = p.gems[GEM::BLUE];
jjAlert("Red gems current: " + p.gems[GEM::RED]);
jjAlert("|Red gems saved: " + gemsArray[p.localPlayerID].red);
jjAlert("Green gems current: " + p.gems[GEM::GREEN]);
jjAlert("|Green gems saved: " + gemsArray[p.localPlayerID].green);
jjAlert("Blue gems current: " + p.gems[GEM::BLUE]);
jjAlert("|Blue gems saved: " + gemsArray[p.localPlayerID].blue);
access = false;
}
break;
case 5:
p.gems[GEM::RED] = gemsArray[p.localPlayerID].red;
jjAlert("||Red gems loaded: " + p.gems[GEM::RED]);
p.gems[GEM::GREEN] = gemsArray[p.localPlayerID].green;
jjAlert("||Green gems loaded: " + p.gems[GEM::GREEN]);
p.gems[GEM::BLUE] = gemsArray[p.localPlayerID].blue;
jjAlert("||Blue gems loaded: " + p.gems[GEM::BLUE]);
if (!access) access = true;
p.health = 4;
break;
}
}
__________________
~XxMoNsTeR
Last edited by XxMoNsTeRXM; Nov 2, 2014 at 03:24 AM.
Reason: Still not working...
|