How to fix this, what is wrong?
#10

FFS ! xD It's zcmd OR strcmp !! And not together so you shoose zcmd OR strcmp:

pawn Код:
CMD:alexobando21(playerid,params[])
{
        new szString[128], Float:Position[3], szName[MAX_PLAYER_NAME];
        GetPlayerName(playerid, szName, sizeof(szName));
        GetPlayerPos(playerid, Position[0], Position[1], Position[2]);
        format(szString, sizeof(szString), "~g~Admin ~w~%s started a war get ready!", szName);
        GameTextForAll(szString, 5000, 5 );
        SetPlayerVirtualWorld(playerid, 9);

        SetTimerEx("TeleportPlayers", 10000, false, "d", playerid, Position[0], Position[1], Position[2]);
        return 1;
}

CMD:ekk(playerid, params[])
{
new str[128], ID;

if(sscanf, "us[128]", ID, str) return SendClientMessage(playerid, -1, "Usage: ekk [playerid] [reason]");
if(GetPlayerVirtualWorld(playerid) == 9)
    {
          SetPlayerPos(ID, x,y,z);
          SetPlayerVirtualWorld(ID, 0);
    }
else
    {
          SendClientMessage(ID, -1, "The player you specified is not in Virtual World 9!");
    }
return 1;
}
And to make it easy: delete
pawn Код:
public OnPlayerCommandText(playerid,cmdtext[]) { }
Reply


Messages In This Thread
How to fix this, what is wrong? - by Alex_Obando - 13.08.2011, 15:50
Re: How to fix this, what is wrong? - by Macluawn - 13.08.2011, 15:55
Respuesta: How to fix this, what is wrong? - by Alex_Obando - 13.08.2011, 15:56
Re: How to fix this, what is wrong? - by Darnell - 13.08.2011, 15:57
Respuesta: How to fix this, what is wrong? - by Alex_Obando - 13.08.2011, 15:59
Re: How to fix this, what is wrong? - by Darnell - 13.08.2011, 16:01
Respuesta: How to fix this, what is wrong? - by Alex_Obando - 13.08.2011, 16:10
Re: How to fix this, what is wrong? - by Darnell - 13.08.2011, 16:17
Respuesta: How to fix this, what is wrong? - by Alex_Obando - 13.08.2011, 17:30
Re: How to fix this, what is wrong? - by Michael@Belgium - 13.08.2011, 18:32
AW: How to fix this, what is wrong? - by samtey - 13.08.2011, 18:37
Re: AW: How to fix this, what is wrong? - by Michael@Belgium - 13.08.2011, 20:25

Forum Jump:


Users browsing this thread: 3 Guest(s)