Buy thing bugged?
#1

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

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.");
?
Reply
#3

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

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
Reply
#5

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)