Posts: 1,130
Threads: 181
Joined: Jan 2009
Reputation:
0
why you post if it isnt ready gaglets ! :S u huge scripter dont post if its completle bugged -.-
Posts: 314
Threads: 10
Joined: Sep 2008
Reputation:
0
What happens GaGlets: If you buy LVL 1 it will set you lvl 1 but it continues the script. This is what happens:
if(lvl == 0) MakeLvl = 1
then the script goes on and detects you're lvl 1 so
if(lvl == 1) MakeLvl = 2
and it'll continue.
How to fix?
Just change
if(PlayerInfo[playerid][pLevel] == 1)
if(PlayerInfo[playerid][pLevel] == 2)
if(PlayerInfo[playerid][pLevel] == 3)
in to
else if(PlayerInfo[playerid][pLevel] == 1)
else if(PlayerInfo[playerid][pLevel] == 2)
else if(PlayerInfo[playerid][pLevel] == 3)
But leave if(PlayerInfo[playerid][pLevel] == 0) like it is.
Posts: 314
Threads: 10
Joined: Sep 2008
Reputation:
0
What happens if you try to buy another level then?
Posts: 791
Threads: 93
Joined: Oct 2009
Reputation:
0
it shows that i bought 1lvl 1 all time i type it
Posts: 314
Threads: 10
Joined: Sep 2008
Reputation:
0
Cant rly find a bug but try put " new PlayerInfo[MAX_PLAYERS][PlayerData]; " outside of the OnPlayerCommandText callback. Put it under this row for example:
new JumpActiv = 1;
new jumpxyz = 1;
new cspam[MAX_PLAYERS];
new jump[MAX_PLAYERS];
new count1[MAX_PLAYERS];