/locatephone help please...
#1

Hey, I've made this:

pawn Код:
dcmd_locatephone(playerid,params[])
{
    if(PlayerInfo[playerid][pFaction] != 1337) return 1;
    new number;
    if(sscanf(params,"d",number)) return SendClientMessage(playerid,COLOR_GREY,".: Usage: /locatephone [number] :.");
    for(new i=0; i<MAX_PLAYERS; i++)
    {
      if(PlayerInfo[i][pNumber] == number)
      {
            new Float:X, Float:Y, Float:Z;
        GetPlayerPos(i,X,Y,Z);
        SetPlayerCheckpoint(playerid,X,Y,Z,5.0);
            SendClientMessage(playerid,COLOR_GREENLIGHT,".: Info: The Phone has been located :.");
            return 1;
        }
    }
    else SendClientMessage(playerid,COLOR_DARKRED,".: Info: Phone doesn't establish a connection :.");  //<-----------THIS LINE
    return 1;
}
It gives this error:

error 029: invalid expression, assumed zero

on the marked line...


How to solve?

And also, how to put the locate into a timer which updates the marker every second?
Reply


Messages In This Thread
/locatephone help please... - by introzen - 04.01.2010, 17:26
Re: /locatephone help please... - by introzen - 04.01.2010, 18:08
Re: /locatephone help please... - by introzen - 04.01.2010, 20:54
Re: /locatephone help please... - by MadeMan - 04.01.2010, 21:08
Re: /locatephone help please... - by introzen - 04.01.2010, 21:15
Re: /locatephone help please... - by MadeMan - 04.01.2010, 21:22
Re: /locatephone help please... - by introzen - 04.01.2010, 21:33

Forum Jump:


Users browsing this thread: 1 Guest(s)