07.07.2013, 19:42
The code seems incomplete, and fix the identation please.
This this, though:
This this, though:
pawn Код:
if(pInfo[playerid][pCookies] >= 5)
{
new weapons[500];
pInfo[playerid][pCookies] -= 0;
strcat(weapons,"{FF0000}Which Weapon do you want to buy?","Deagle - Ammo: 200 (5 Cookies)\nShotgun - Ammo: 200 (10 Cookies)\nMP5 or SMG - Ammo: 300 (15 Cookies)\nAK-47 Assault Rifle - Ammo: 300 (20 Cookies)\nM4 Assault Rifle - Ammo: 300 (20 Cookies)\nSniper Rifle - Ammo: 150 (25 Cookies)");
ShowPlayerDialog(DIALOG_BUY_WEAPONS,DIALOG_STYLE_LIST,"{FF0000}Which Weapon do you want to buy?",weapons,"Select","Close");
}
else
{
SendCookieError(playerid,5);
}