03.08.2011, 03:31
You did OnDialogResponse Wrong.
Your:
It was suppose to be
Also under a case you had two {
Your:
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
return 1;
}
{
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == SKINMENU && response)
{
switch(listitem)
{
case 0:
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
GivePlayerWeapon(playerid, 3, 1000);
SetPlayerColor(playerid,0x24FF0AB9);
SetPlayerSkin(playerid, 105);
}
case 1:
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
GivePlayerWeapon(playerid, 23, 1000);
SetPlayerColor(playerid,0xC2A2DAAA);
SetPlayerSkin(playerid, 102);
}
case 2:
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
GivePlayerWeapon(playerid,23, 1000);
SetPlayerColor(playerid, 0xFF9900AA);
SetPlayerSkin(playerid, 114);
}
case 3:
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
GivePlayerWeapon(playerid, 23, 1000);
SetPlayerColor(playerid, 0xFF66FFAA);
SetPlayerSkin(playerid, 117);
}
}
return 1;
}
return 0;
}