stock /error - Problem
#1

Can you help me :/?
Reply
#2

How do you create "userMoney" ?
Reply
#3

Try putting this near the top of your script:
pawn Код:
new userMoney[MAX_PLAYERS];
Reply
#4

I have already userMoney[MAX_PLAYERS]; in my script..
Reply
#5

past full errors/warnings so we can se what line it is

and past 5 lines above and under each error and notify what line number it is
Reply
#6

this line:
Код:
userMoney[playerid] = (userMoney[playerid]+money);
Reply
#7

pawn Код:
stock GiveUserMoney(playerid, money) {
    userMoney[playerid] = userMoney+money;
    ResetPlayerMoney(playerid);
    GivePlayerMoney(playerid,userMoney[playerid]);
    return userMoney[playerid];
}
idk why is that so impossible.
btw you don't have to reset the money, but if you want to, then here you go

EDIT: userMoney's right creation:
pawn Код:
new userMoney[MAX_PLAYERS];
Anywhere, but not in a public.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)