22.03.2013, 14:48
pawn Код:
if (strcmp(cmdtext, "/cmds", true) == 0)
{
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Commands", "/kill - Suicide\n/car - Spawns a car\n/tcar - Spawns a pre-tuned car\n/nos - Add nitrous on your car\n/xnos - Remove nitrous from your car\n/god, /godcar - Make you or the car god\n/teles - Teles", "OK","OK");
return 1;
}
if (strcmp(cmdtext, "/teles", true) == 0)
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Teleports", "Places: /ls, /sf, /lsair, /sfair, /lv, /lvair, /beach\nParkour: /pk1, /hayclimb\nJumps: /lsj\nMisc: /partyhouse, /carpark", "OK", "OK");
return 1;
}
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(response)
{
switch(dialogid)
{
case 1:
{
SendClientMessage(playerid, 0xFFFFFFAA, "You've read the /cmds.");
return 1;
}
case 2:
{
SendClientMessage(playerid, 0xFFFFFFAA, "You've read the /rules.");
return 1;
}
}
}
return 1;
}
Код:
Script[gamemodes/racerevolution.amx]: Run time error 19: "File or function is not found"
