Custom Stock Problem :)
#1

I must've made some stupid error that I'm unaware of.

It says there's a arguement error(2nd arguement) in the SendMe(playerid, msg); in the EngineTimer.

pawn Код:
public EngineTimer(playerid)
{
    new rand = random(2);
  if(rand == 0)
  {
        GameTextForPlayer(playerid, "~g~Engine On", 3000, 5);
        new msg[128];
        format(msg,sizeof(msg),"turns his engine on.");
        SendMe(playerid, msg);
        SendClientMessage(playerid, COLOR_YELLOW, "Turn the engine off with /e");
        new vehicleid = GetPlayerVehicleID(playerid);
        Engine[vehicleid] = 1;
        TogglePlayerControllable(playerid, 1);
  }
  if(rand == 1)
  {
    SendClientMessage(playerid, COLOR_GREEN, "Engine failed to start.");
  }
}

stock SendMe(playerid, msg)
{
    new
    Float:meax, Float:meay, Float:meaz;
    GetPlayerPos( playerid, meax, meay, meaz );
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        if(IsPlayerInRangeOfPoint(i, 25.0, meax, meay, meaz))
        {
            if(PlayerInfo[playerid][Masked] == 0)
        {
                new mepname[MAX_PLAYER_NAME];
                GetPlayerName(playerid, mepname, sizeof(mepname));
                new outputME[128];
                format(outputME, 128, "* %s %s", mepname, msg);
                SendClientMessage(i, COLOR_SALMON, outputME);
            }
      if(PlayerInfo[playerid][Masked] == 1)
        {
                new outputME[128];
                format(outputME, 128, "* A Stranger %s", msg);
                SendClientMessage(i, COLOR_SALMON, outputME);
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Custom Stock Problem :) - by IcyBlight - 31.05.2010, 06:01
Re: Custom Stock Problem :) - by Grim_ - 31.05.2010, 06:12
Re: Custom Stock Problem :) - by IcyBlight - 31.05.2010, 06:23
Re: Custom Stock Problem :) - by Grim_ - 31.05.2010, 06:24
Re: Custom Stock Problem :) - by IcyBlight - 31.05.2010, 06:27
Re: Custom Stock Problem :) - by Grim_ - 31.05.2010, 06:28

Forum Jump:


Users browsing this thread: 1 Guest(s)