Server: Unknow 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Server: Unknow Command (
/showthread.php?tid=66926)
Server: Unknow Command -
Schock - 25.02.2009
pawn Код:
if(strcmp(cmdtext, "/teles", true) == 0)
{
GetPlayerVirtualWorld(playerid);
SendClientMessage(playerid, GREEN, "Teleportmenu");
if(GetPlayerVirtualWorld(playerid) == 0)
{
KillTimer(cartimer[playerid]);
ShowMenuForPlayer(telemenu, playerid);
TogglePlayerControllable(playerid, 0);
}
else
{
SendClientMessage(playerid, RED, "Use /leavedm to leave the deathmatch area");
return 1;
}
}
why show me this (im in virtual world 0) "Server: Unknow Command" ?
Re: Server: Unknow Command -
Rks25 - 25.02.2009
I would try this.
pawn Код:
if(strcmp(cmdtext, "/teles", true) == 0)
{
SendClientMessage(playerid, GREEN, "Teleportmenu");
if(GetPlayerVirtualWorld(playerid) == 0)
{
KillTimer(cartimer[playerid]);
ShowMenuForPlayer(telemenu, playerid);
TogglePlayerControllable(playerid, 0);
}
else
{
SendClientMessage(playerid, RED, "Use /leavedm to leave the deathmatch area");
}
return 1;
}