Witam mam taki problem zrobi?em laser do broni w GUI ale gdy w sampie wpisze komend? laser to pokazuje si? okno z opcjami ale jak klikn? na oboj?tnie w jak? opcje to dodaje tylko laser o kolorze czerwonym. Jak zrobi? aby kolory by?y r??ne nie tylko red. Za pomoc
Oto ten skrypt.
[code]COMMAND:laser(playerid, params[])
{
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_LIST, "laser","NiebieskinCzerwonynRozowynPomaranczowynZielonynZ??tynUsu?", "TAK", "NIE");
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 0)
{
if(response)
{
switch(listitem)
{
case 0:
{
SetPVarInt(playerid, "laser", 1);
SetPVarInt(playerid, "blue", GetPVarInt(playerid, "color"));
SendClientMessage(playerid, 0xFFFFFFAA, "Doda?e? niebieski laser.");
}
case 1:
{
SetPVarInt(playerid, "laser", 1);
SetPVarInt(playerid, "red", GetPVarInt(playerid, "color"));
SendClientMessage(playerid, 0xFFFFFFAA, "Doda?e? czerwony laser.");
}
case 2:
{
SetPVarInt(playerid, "laser", 1);
SetPVarInt(playerid, "pink", GetPVarInt(playerid, "color"));
SendClientMessage(playerid, 0xFFFFFFAA, "Doda?e? r??owy laser.");
}
case 3:
{
SetPVarInt(playerid, "laser", 1);
SetPVarInt(playerid, "orange", GetPVarInt(playerid, "color"));
SendClientMessage(... |