#1

I hav eproblem with my lvls

i can buy 1st level but 2nd 3rd cant help !

http://pastebin.com/f2036e9bb
P.S dont steal this script i havent done or copy the commands !!!
Reply
#2

why you post if it isnt ready gaglets ! :S u huge scripter dont post if its completle bugged -.-
Reply
#3

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.
Reply
#4

the same problem dude

Reply
#5

What happens if you try to buy another level then?
Reply
#6

it shows that i bought 1lvl 1 all time i type it
Reply
#7

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];
Reply
#8

It dont change nothing

I had it there before! - i have tested many ways but fail !
Reply
#9

if(strcmp(cmd, /getcar ,true) == 1)
{
return CarToPlayer(playerid);
}

0==false
1==true
Reply
#10

Quote:
Originally Posted by XPERIA
if(strcmp(cmd, /getcar ,true) == 1)
{
return CarToPlayer(playerid);
}

0==false
1==true
wat...?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)