PDA

View Full Version : Warnings dialog not working..


IndependentGaming
31/07/2015, 07:36 PM
Hello, can anyone tell me what is wrong here:

case 2: {

if(playerData[playerid][pVIP] >= 3 && playerData[playerid][pWeaponLic] == 0)
return SendClientMessage(playerid, COLOR_GRAD1, "You do not have a weapon license.");
return ShowPlayerDialogEx(playerid, DIALOG_VIP_LOCKER_WEAPON, DIALOG_STYLE_LIST, "VIP - Weapons", "Desert Eagle\n\
Silenced 9mm\n\
Shotgun\n\
Katana\n\
Shovel\n\
>> Baseball Bat",
"Select",
"Cancel"
);

ShowPlayerDialogEx(playerid, DIALOG_VIP_LOCKER_WEAPON, DIALOG_STYLE_LIST, "VIP - Weapons", "Desert Eagle (15 VIP tokens)\n\
Silenced 9mm (6 VIP tokens)\n\
Shotgun (10 VIP tokens)\n\
Katana (3 VIP tokens)\n\
Shovel (2 VIP tokens)\n\
>> Baseball Bat (3 VIP tokens)",
"Select",
"Cancel"
);
}

C:\Users\Koen\Desktop\SGRP\gamemodes\SGRP.pwn(1513 2) : warning 217: loose indentation
C:\Users\Koen\Desktop\SGRP\gamemodes\SGRP.pwn(1514 2) : warning 225: unreachable code
C:\Users\Koen\Desktop\SGRP\gamemodes\SGRP.pwn(1514 2) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

Header size: 34380 bytes
Code size: 4898704 bytes
Data size: 131614132 bytes
Stack/heap size: 16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements:136563600 bytes

3 Warnings.


(PS Do not change the style is anti dialog spoof)

Macronix
31/07/2015, 07:43 PM
Try this:


case 2: {

if(playerData[playerid][pVIP] >= 3 && playerData[playerid][pWeaponLic] == 0)
return SendClientMessage(playerid, COLOR_GRAD1, "You do not have a weapon license.");

ShowPlayerDialogEx(playerid, DIALOG_VIP_LOCKER_WEAPON, DIALOG_STYLE_LIST, "VIP - Weapons", "Desert Eagle\n\
Silenced 9mm\n\
Shotgun\n\
Katana\n\
Shovel\n\
Baseball Bat",
"Select",
"Cancel"
);

ShowPlayerDialogEx(playerid, DIALOG_VIP_LOCKER_WEAPON, DIALOG_STYLE_LIST, "VIP - Weapons", "Desert Eagle (15 VIP tokens)\n\
Silenced 9mm (6 VIP tokens)\n\
Shotgun (10 VIP tokens)\n\
Katana (3 VIP tokens)\n\
Shovel (2 VIP tokens)\n\
Baseball Bat (3 VIP tokens)",
"Select",
"Cancel"
);
}