SA-MP Forums Archive
[SOLVED]I know ive done something wrong - 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: [SOLVED]I know ive done something wrong (/showthread.php?tid=121974)



[SOLVED]I know ive done something wrong - JoeDaDude - 19.01.2010

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


Re: I know ive done something wrong - pagie1111 - 19.01.2010

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


Re: I know ive done something wrong - JoeDaDude - 19.01.2010

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


Re: I know ive done something wrong - JoeDaDude - 19.01.2010

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