Need some help! - 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: Need some help! (
/showthread.php?tid=424498)
Need some help! -
LeeXian99 - 22.03.2013
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;
}
vvv It happens like this after I compile it. vvv
Код:
Script[gamemodes/racerevolution.amx]: Run time error 19: "File or function is not found"
I don't know what's wrong with the response.

I need some pros to help me as my members are complaining about the gamemode name is "Unknown".
Re: Need some help! -
mastermax7777 - 22.03.2013
should be case 0, then case 1
not 1,2
with the error ur missing plugin install in folder and plugins line in server.cfg
Re: Need some help! -
LarzI - 22.03.2013
You're either missing a plugin or the main function in your script
Re: Need some help! -
LeeXian99 - 23.03.2013
Alright, I will try it.
Re: Need some help! -
rishabh1x - 23.03.2013
I solved this error yesterday on my vps....I was missing plugins....And remember if u are hosting on a linux based os then u shud name the plugins fully like streamer.so and etc.......