SA-MP Forums Archive
PAWNO crashing problem. - 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: PAWNO crashing problem. (/showthread.php?tid=378497)



PAWNO crashing problem. - Misterflowers - 17.09.2012

When I am placing this codes:
Quote:

public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext,"/buygun",true) == 0)
{
if(!IsPlayerInRangeOfPoint(playerid, 7, 123.0, 123.0, 123.0)) return SendClientMessage(playerid, 0xFFFFFFAA, "You need to be at X.");
ShowPlayerDialog(playerid, 1000, DIALOG_STYLE_LIST, "Weapons", "1. Weapon\n2. Weapon\n3. Weapon\n4. Weapon", "This one.", "Cancel.");
return 1;
}
return 0;
}

Quote:

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 1000)
{
if(response)
{
switch(listitem)
{
case 0:
{
GivePlayerWeapon(playerid, 0, 0);
}
case 1:
{
GivePlayerWeapon(playerid, 0, 0);
}
default:
{
GivePlayerWeapon(playerid, 0, 0);
}
}
}
}
return 1;
}

My PAWNO is crashing.


Re: PAWNO crashing problem. - Misterflowers - 20.09.2012

Help?