01.06.2017, 13:59
Hi everybody.
So I made a VIP shop with dialogs and people can buy stuff with their Euros which they have on their account.
The problem is when I buy a VIP package it doesn't take amount of Euros from my account. It gives me like 10 million Euros more idk why...
Here is the code:
The float pInfo[playerid][pEuro] is beeing weird for some reason.
Can someone help me?
Thx in advanced
So I made a VIP shop with dialogs and people can buy stuff with their Euros which they have on their account.
The problem is when I buy a VIP package it doesn't take amount of Euros from my account. It gives me like 10 million Euros more idk why...
Here is the code:
Код:
if(dialogid == DIALOG_VIPPAKET4) { if(response) { if(pInfo[playerid][pVip] == 4) return SCM(playerid, COLOR_RED, "Vec imate VIP 4!"); if(pInfo[playerid][pEuro] < 10) return SCM(playerid, COLOR_RED, "Nemate dovoljno Eura(Ђ)! (10.00Ђ)"); pInfo[playerid][pEuro] -= 10; //This is the problem... SCM(playerid, COLOR_GREEN, "CESTITAMO! Uspesno ste kupili VIP Paket Level 4!"); SCM(playerid, COLOR_GREEN, "Za pomoc oko VIP-a koristite: /viphelp!"); pInfo[playerid][pVip] = 4; GivePlayerMoneyEx(playerid, 350000); } }
Can someone help me?
Thx in advanced