[SOLVED]I know ive done something wrong
#1

I know ive done something wrong, I cant remember what though:

pawn Код:
dcmd_robbery(playerid, params[])
{
    #pragma unused params
  if(gTeam[playerid] == TEAM_CROOKSF)
    {
    if(IsPlayerInRangeOfPoint(playerid, 7.0, -693.9286, 960.6267, 12.2430))
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            SendClientMessage(playerid,0xFFFFFFFF,"Goto the bank, Marked on your map with a checkpoint to start the robbery");
            //SetPlayerCheckpoint(playerid,);
        }
        else
            {
                SendClientMessage(playerid,0xFFFFFFFF,"Message One");
                //SetPlayerCheckpoint(playerid,);
            }
        }
        else
            {
                SendClientMessage(playerid,0xFFFFFFFF,"Message Two");
                //SetPlayerCheckpoint(playerid,);
            }
        }
        else
            {
                SendClientMessage(playerid,0xFFFFFFFF,"Message Three");
                //SetPlayerCheckpoint(playerid,);
            }
    return 1;
}
Ingame if i type /robbery, Nothing happesn, No UNKNOWN COMMAND, No nothing
Reply
#2

This is happening to me aswell. But with zcmd. My commands will not load in my Awa-Map Editor. Its gay.
Reply
#3

Ive used loads of it before,
Thats why i did it this time,
So like it will send a message if im not in the right team, Or if im not in the right location, Or if im not in a car
Reply
#4

I know, But it does that with other commands, Where ive used "else" like 5/6 times,
So i just assumed that it would work seeing as it did with other commands
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)