04.02.2014, 21:21
Код:
[19:24:16] [debug] Server crashed while executing Argentinarp.amx [19:24:16] [debug] Backtrace (most recent call first): [19:24:16] [debug] #0 native SendClientMessage() from samp-47147 [19:24:16] [debug] #1 public OnDialogResponse(playerid=33, dialogid=924, response=1, listitem=0, inputtext[]=@0x0045c89c "")+0x22394 at C:\Users\Admin\Desktop\Server\gamemodes\Argentinarp.pwn:23718
pawn Код:
if(dialogid == TEL_MSGBOX)
{
if(response == 1)
{
switch(listitem)
{
case 0:
{
ClearChatbox(playerid, 10);
Message(playerid, 0xFF0000FF, "iPhone ======= Buzуn 1 =======================================================");
Message(playerid, COLOR_GRAD2, PlayerInfo[playerid][pSMS_1]); //Esta es la linea
}
case 1:
{
ClearChatbox(playerid, 10);
Message(playerid, 0xFF0000FF, "iPhone ======= Buzуn 2 =======================================================");
Message(playerid, COLOR_GRAD2, PlayerInfo[playerid][pSMS_2]);
}
case 2:
{
ClearChatbox(playerid, 10);
Message(playerid, 0xFF0000FF, "iPhone ======= Buzуn 3 =======================================================");
Message(playerid, COLOR_GRAD2, PlayerInfo[playerid][pSMS_3]);
}
case 3:
{
ClearChatbox(playerid, 10);
Message(playerid, 0xFF0000FF, "iPhone ======= Buzуn 4 =======================================================");
Message(playerid, COLOR_GRAD2, PlayerInfo[playerid][pSMS_4]);
}
case 4:
{
ClearChatbox(playerid, 10);
Message(playerid, 0xFF0000FF, "iPhone ======= Buzуn 5 =======================================================");
Message(playerid, COLOR_GRAD2, PlayerInfo[playerid][pSMS_5]);
}
}
}
else
{
switch(listitem)
{
case 0:
{
strmid(PlayerInfo[playerid][pSMS_1], "Vacнo", 0, strlen("Vacнo"), 32);
Message(playerid, COLOR_GRAD2, "Mensaje borrado");
}
case 1:
{
strmid(PlayerInfo[playerid][pSMS_2], "Vacнo", 0, strlen("Vacнo"), 32);
Message(playerid, COLOR_GRAD2, "Mensaje borrado");
}
case 2:
{
strmid(PlayerInfo[playerid][pSMS_3], "Vacнo", 0, strlen("Vacнo"), 32);
Message(playerid, COLOR_GRAD2, "Mensaje borrado");
}
case 3:
{
strmid(PlayerInfo[playerid][pSMS_4], "Vacнo", 0, strlen("Vacнo"), 32);
Message(playerid, COLOR_GRAD2, "Mensaje borrado");
}
case 4:
{
strmid(PlayerInfo[playerid][pSMS_5], "Vacнo", 0, strlen("Vacнo"), 32);
Message(playerid, COLOR_GRAD2, "Mensaje borrado");
}
}
}
}