[NEEDHELP] Problem with a command
#4

Quote:
Originally Posted by ImprezBart
Посмотреть сообщение
Here you go.
It seems like you forgot a '{' and a '}'.
pawn Код:
if(strcmp(cmd,"/whereis",true)==0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(IsPlayerInRangeOfPoint(playerid, 3.0, 1757.1124,-1943.9635,13.5684)){ // INFO
            new x_nr[32];
            x_nr = strtok(cmdtext, idx);
            if(!strlen(x_nr))
            {
                SendClientMessage(playerid,COLOR_GRAD4,"Welcome to {33CCFF}Logical Roleplay's {D8D8D8}Map!");
                SendClientMessage(playerid,COLOR_GRAD4,"[PLACES:] mp1");
                return 1;
            }
            else
            {
                 SendClientMessage(playerid, COLOR_GRAD2, "You are not at the Info Machine near Unity.");
                 return 1;
            }
            if(strcmp(x_nr,"mp1",true) == 0)
            {
                SendClientMessage(playerid,COLOR_GRAD4,"{FF0000}Material Pickup 1 {D8D8D8}has been marked on your map");
                SetPlayerCheckpoint(playerid, 2183.4563,-1502.8416,23.9568, 3.0); //MP1
                return 1;
            }
        }}
        return 1;
    }
Try this.
Reply


Messages In This Thread
[NEEDHELP] Problem with a command - by ImprezBart - 21.05.2011, 09:55
Re: [NEEDHELP] Problem with a command - by DeathOnaStick - 21.05.2011, 10:31
Re: [NEEDHELP] Problem with a command - by ImprezBart - 21.05.2011, 10:40
Re: [NEEDHELP] Problem with a command - by DeathOnaStick - 21.05.2011, 10:47
Re: [NEEDHELP] Problem with a command - by ImprezBart - 21.05.2011, 10:50
Re: [NEEDHELP] Problem with a command - by DeathOnaStick - 21.05.2011, 10:54
Re: [NEEDHELP] Problem with a command - by ImprezBart - 21.05.2011, 10:56
Re: [NEEDHELP] Problem with a command - by DeathOnaStick - 21.05.2011, 10:58
Re: [NEEDHELP] Problem with a command - by ImprezBart - 21.05.2011, 11:05
Re: [NEEDHELP] Problem with a command - by DeathOnaStick - 21.05.2011, 11:13

Forum Jump:


Users browsing this thread: 1 Guest(s)