29.05.2014, 02:16
(
Последний раз редактировалось TazmaNiax; 29.05.2014 в 02:35.
Причина: Solved
)
Fixed
if(dialogid == DIALOG_SENJATA)
{
if(response)
{
switch(listitem)
{
case 0: ShowPlayerDialog(playerid, DIALOG_SENJATA, DIALOG_STYLE_LIST, "Senjata", "-=Pistol=-\nDesert Eagle ($2000)\nS.Pistol\nColt 45\n{-=Shotgun=-\nSawn-Off ($4000)\nShotgun\nSpas\n-=Sub-Mechinegun=-\nMP5\nTec9\nUzi\n-=Assault=-\nM4\nAk47", "Beli", "Batal");
case 1:
{
if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid, COLOR_RED, "Uang Gak Cukup bro, miskin amat lu"); // Line 80
GivePlayerMoney(playerid, -2000);
GivePlayerWeapon(playerid, 24, 214);
}
case 2:
{
if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid, COLOR_RED, "Uang Gak cukup bro, miskin amat lu");
GivePlayerMoney(playerid, -2000);
GivePlayerWeapon(playerid, 23, 214);
}
case 3:
{
if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid, COLOR_RED, "Uang Gak cukup bro, miskin amat lu");
GivePlayerMoney(playerid, -2000);
GivePlayerWeapon(playerid, 22, 214);
}
case 4: ShowPlayerDialog(playerid, DIALOG_SENJATA, DIALOG_STYLE_LIST, "Senjata", "-=Pistol=-\nDesert Eagle ($2000)\nS.Pistol\nColt 45\n{-=Shotgun=-\nSawn-Off ($4000)\nShotgun\nSpas\n-=Sub-Mechinegun=-\nMP5\nTec9\nUzi\n-=Assault=-\nM4\nAk47", "Beli", "Batal");
case 5:
{
if(GetPlayerMoney(playerid) < 4000) return SendClientMessage(playerid, COLOR_RED, "Uang Gak cukup bro, miskin amat lu");
GivePlayerMoney(playerid, -4000);
GivePlayerWeapon(playerid, 26, 214);
}
case 6:
{
if(GetPlayerMoney(playerid) < 4000) return SendClientMessage(playerid, COLOR_RED, "Uang Gak cukup bro, miskin amat lu");
GivePlayerMoney(playerid, -4000);
GivePlayerWeapon(playerid, 25, 214);
}
case 7:
{
if(GetPlayerMoney(playerid) < 4000) return SendClientMessage(playerid, COLOR_RED, "Uang Gak cukup bro, miskin amat lu");
GivePlayerMoney(playerid, -4000);
GivePlayerWeapon(playerid, 27, 214);
}
}
}
return 1;
}
#define COLOR_RED 0xFF0000FF