SA-MP Forums Archive
Buy thing bugged? - 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)
+--- Thread: Buy thing bugged? (/showthread.php?tid=415079)



Buy thing bugged? - [SWE]Anonymous - 11.02.2013

Hello.
I need help with the buy system.
You can go on -10000000000000 How much u want without nothing happends.
Can someone help to fix this?
Its so fucking annoying.


Re: Buy thing bugged? - Smikkeltoetje - 11.02.2013

Quote:
Originally Posted by [SWE]Anonymous
Посмотреть сообщение
Hello.
I need help with the buy system.
You can go on -10000000000000 How much u want without nothing happends.
Can someone help to fix this?
Its so fucking annoying.
If i understand this right....
You mean it should stop letting you buy something if you dont have enough money right?

As in:
pawn Код:
if(PlayerInfo[playerid][pMoney] < 1000) return SendClientMessage(playerid, COLOR_GREY, "You don't have that much money on you.");
?


Re: Buy thing bugged? - [SWE]Anonymous - 11.02.2013

Quote:
Originally Posted by Smikkeltoetje
Посмотреть сообщение
If i understand this right....
You mean it should stop letting you buy something if you dont have enough money right?

As in:
pawn Код:
if(PlayerInfo[playerid][pMoney] < 1000) return SendClientMessage(playerid, COLOR_GREY, "You don't have that much money on you.");
?
I got this error.

C:\Users\Elev\Desktop\samp03x_svr_R1-2_win32\gamemodes\cs1.6.pwn(19) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.



Re: Buy thing bugged? - Smikkeltoetje - 11.02.2013

Quote:
Originally Posted by [SWE]Anonymous
Посмотреть сообщение
I got this error.

C:\Users\Elev\Desktop\samp03x_svr_R1-2_win32\gamemodes\cs1.6.pwn(19) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.
add this to your script

pawn Код:
enum pInfo
{

    pMoney
it works for me


Re: Buy thing bugged? - [SWE]Anonymous - 11.02.2013

Quote:
Originally Posted by Smikkeltoetje
Посмотреть сообщение
add this to your script

pawn Код:
enum pInfo
{

    pMoney
it works for me
Then i get this error
Код:
C:\Users\Elev\Desktop\samp03x_svr_R1-2_win32\gamemodes\cs1.6.pwn(14) : error 010: invalid function or declaration
C:\Users\Elev\Desktop\samp03x_svr_R1-2_win32\gamemodes\cs1.6.pwn(20) : error 001: expected token: "}", but found "new"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.



Re: Buy thing bugged? - Smikkeltoetje - 11.02.2013

Quote:
Originally Posted by [SWE]Anonymous
Посмотреть сообщение
Then i get this error
Код:
C:\Users\Elev\Desktop\samp03x_svr_R1-2_win32\gamemodes\cs1.6.pwn(14) : error 010: invalid function or declaration
C:\Users\Elev\Desktop\samp03x_svr_R1-2_win32\gamemodes\cs1.6.pwn(20) : error 001: expected token: "}", but found "new"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
enum pInfo
{
pMoney
}


Forgot the "}"

Try it now