dmzone cmd
#1

how do i make this because i get a warning im trying 2 make it so when you type /leavedm if your in the deathmatch it teles u out and if your not in a dm it says your not in a deathmatch

heres code


Код:
	if (strcmp(cmdtext, "/leavedm", true)) return SendClientMessage(playerid, 0x33CCFFAA, "Your Not In A Deathmatch!");
	{
	SetPlayerPos(playerid, 2000.3974,1526.5104,14.6171);
	SendClientMessage(playerid, 0x33CCFFAA, "You Left The Deathmatch");
	busy[playerid] = 0;
	return 1;
	}
and the warning/error


Код:
C:\Users\Stephen-Laptop\Desktop\server samp - Copy\gamemodes\lvpg.pwn(497) : warning 225: unreachable code
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
thanks
Reply
#2

try this

pawn Код:
if(strcmp(cmdtext, "/leavedm", true))
{
    SetPlayerPos(playerid, 2000.3974,1526.5104,14.6171);
    SendClientMessage(playerid, 0x33CCFFAA, "You Left The Deathmatch");
    busy[playerid] = 0;
        return 1;
}
Reply
#3

Quote:
Originally Posted by Steven Paul
Посмотреть сообщение
try this

pawn Код:
if(strcmp(cmdtext, "/leavedm", true))
{
    SetPlayerPos(playerid, 2000.3974,1526.5104,14.6171);
    SendClientMessage(playerid, 0x33CCFFAA, "You Left The Deathmatch");
    busy[playerid] = 0;
        return 1;
}
yeah but if their not in the dm they can just teleport and i dont want them 2 be-able to because its a dm server they could go in anywhere and tele
Reply
#4

nvm remembered the code
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)