23.08.2013, 16:06
(
Последний раз редактировалось Giroud12; 23.08.2013 в 16:29.
Причина: Fix
)
Fixed!
Thanks to KONSTANTINOS
Thanks to KONSTANTINOS
if (GetPlayerMoney(playerid) <= 5000) return SendClientMessage(playerid, RED, "You don't have enough money!"); //line 314
{
GivePlayerMoney(playerid,-5000);
pInfo[playerid][Cookies] += 10;
new file[100],Name[MAX_PLAYER_NAME],Ip[16]; GetPlayerName(playerid,Name,sizeof(Name)); GetPlayerIp(playerid,Ip,sizeof(Ip)); format(file,sizeof(file),PlayerFile,Name);
dini_IntSet(file,"Cookies :", pInfo[playerid][Cookies]);
}
if(listitem == 3)
{
if (GetPlayerMoney(playerid) <= 10000) return SendClientMessage(playerid, RED, "You don't have enough money!");
{
GivePlayerMoney(playerid,-10000);
pInfo[playerid][Cookies] += 20;
new file[100],Name[MAX_PLAYER_NAME],Ip[16]; GetPlayerName(playerid,Name,sizeof(Name)); GetPlayerIp(playerid,Ip,sizeof(Ip)); format(file,sizeof(file),PlayerFile,Name);
dini_IntSet(file,"Cookies :", pInfo[playerid][Cookies]);
}
if(listitem == 4)
{
if (GetPlayerMoney(playerid) <= 25000) return SendClientMessage(playerid, RED, "You don't have enough money!");
{
GivePlayerMoney(playerid,-25000);
pInfo[playerid][Cookies] += 50;
new file[100],Name[MAX_PLAYER_NAME],Ip[16]; GetPlayerName(playerid,Name,sizeof(Name)); GetPlayerIp(playerid,Ip,sizeof(Ip)); format(file,sizeof(file),PlayerFile,Name);
dini_IntSet(file,"Cookies :", pInfo[playerid][Cookies]);
}
return 1;
}
return 0;
}
if( something )
{
// blabla..
}
else if( something )
{
// blabla..
}
if (GetPlayerMoney(playerid) <= 5000) return SendClientMessage(playerid, RED, "You don't have enough money!"); //line 314
GivePlayerMoney(playerid,-5000);
pInfo[playerid][Cookies] += 10;
new file[100],Name[MAX_PLAYER_NAME],Ip[16]; GetPlayerName(playerid,Name,sizeof(Name)); GetPlayerIp(playerid,Ip,sizeof(Ip)); format(file,sizeof(file),PlayerFile,Name);
dini_IntSet(file,"Cookies :", pInfo[playerid][Cookies]);