stock /error - Problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: stock /error - Problem (
/showthread.php?tid=253267)
stock /error - Problem -
GrandMaa - 05.05.2011
Can you help me :/?
Re: stock /error - Problem -
MadeMan - 05.05.2011
How do you create "userMoney" ?
Re: stock /error - Problem -
Stigg - 05.05.2011
Try putting this near the top of your script:
pawn Код:
new userMoney[MAX_PLAYERS];
Re: stock /error - Problem -
GrandMaa - 05.05.2011
I have already userMoney[MAX_PLAYERS]; in my script..
Re: stock /error - Problem -
DRIFT_HUNTER - 05.05.2011
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
Re: stock /error - Problem -
GrandMaa - 05.05.2011
this line:
Код:
userMoney[playerid] = (userMoney[playerid]+money);
Re: stock /error - Problem -
Seven_of_Nine - 05.05.2011
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.