Warnings dialog not working.. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Warnings dialog not working.. (
/showthread.php?tid=583885)
Warnings dialog not working.. -
IndependentGaming - 31.07.2015
Hello, can anyone tell me what is wrong here:
PHP код:
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"
);
}
PHP код:
C:\Users\Koen\Desktop\SGRP\gamemodes\SGRP.pwn(15132) : warning 217: loose indentation
C:\Users\Koen\Desktop\SGRP\gamemodes\SGRP.pwn(15142) : warning 225: unreachable code
C:\Users\Koen\Desktop\SGRP\gamemodes\SGRP.pwn(15142) : 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)
AW: Warnings dialog not working.. -
Macronix - 31.07.2015
Try this:
PHP код:
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"
);
}