Server info - Crash - 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: Server info - Crash (
/showthread.php?tid=481686)
Server info - Crash -
Ludek - 17.12.2013
Hello, I need help, I have a minor bug in this command. When you call me to give server "SERVER: Unknown command" doing it for about 2 hours now but I can not think where the error is, so I turn here.
Can anyone advise me? thank you
(Use ****** translate, my english not very good, thank you for your understanding)
Код:
if(strcmp(cmdtext, "/3", true) == 0)
{
new Top1_Text2[200];
new hsway[64]="HighScore.dudb.sav";
format(Top1_Text2,200, "Top Jailed: %s (%d)", dini_Get(hsway,"JailN"), dini_Int(hsway,"Jail"));
ShowPlayerDialog(playerid,Dialog_Record2,DIALOG_STYLE_MSGBOX,"Top Jailed",Top1_Text2,"Next","Close");
return 1;
}
(JailN = nickname | Jail = number)
Addendum: This command works
Код:
if(strcmp(cmdtext, "/1", true) == 0)
{
new Top1_Text2[200];
new hsway[64]="HighScore.dudb.sav";
format(Top1_Text2,200, "Top Skill: %s (%f)",dini_Get(hsway,"SkillN"), dini_Int(hsway,"Skill"));
ShowPlayerDialog(playerid,Dialog_Record0,DIALOG_STYLE_MSGBOX,"Top Skill",Top1_Text2,"Next","Close");
return 1;
}
(SkillN = nickname | Skill = number)