Error with a command - 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: Error with a command (
/showthread.php?tid=614115)
Error with a command -
Immortal99 - 04.08.2016
My Error:
PHP код:
C:\Users\Immortal\Desktop\TDM\gamemodes\TeamD1.pwn(73) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
My Code:
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
CMD:teles(playerid, params[])
{
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Teleports", "Abondoned Airport\nSan Ferrieno Airport\nLos Santos Airport\nLas Venturas Airport","Teleport","Cancel");
return 1;
}
On Top Of Script:
PHP код:
// Include's
#include <a_samp>
#include <sscanf2>
#include <zcmd>
Re: Error with a command -
Logic_ - 04.08.2016
PHP код:
CMD:teles(playerid, params[])
{
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Teleports", "Abondoned Airport\nSan Ferrieno Airport\nLos Santos Airport\nLas Venturas Airport","Teleport","Cancel");
return 1;
}
put this somewhere in your script, this shouldn't be under/ in any callbacks.
EDIT: +
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
remove this callback, no need of it.