Jump to content

alin_samp1996

Membru
  • Posts

    4
  • Joined

  • Last visited

    Never

Posts posted by alin_samp1996

  1. Cum as putea pune un text label .. la o masina personala.... si cand intra in ea sa dispara textul... dupaia cand o parchezi sa apara textul!

    la OnPlayerStateChange am :

    [pawn]          new vehicleid = GetPlayerVehicleID(playerid);

        if(newstate == PLAYER_STATE_DRIVER)

        {

          if(vehicleid == maxveh && GetVehicleModel(vehicleid) == 411)

          {

        if(strcmp(PlayerName2(playerid), Car_Owners1, true) == 0 || IsPlayerAdmin(playerid))

          {

        return 1;

        }

        else

        {

        GetPlayerPos(playerid, x,y,z); SetPlayerPos(playerid, x,y,z+5);

        return Errors(playerid, 1);

        }

        }

    [/pawn]

  2. Cum fac sa stearga aceasta functie numai anumite obiecte nu tot!

    [pawn]    public OnPlayerPickUpPickup ( playerid , pickupid )

        {

          DestroyPickup(pickupid);

          return 1;

        }[/pawn]

    Eu am acel sistem cand te omoara cineva iti ia armele... SI daca ma duc la o casa in pickup il sterge! cum as aputea face sa stearga decat armele?

    Mi sa spus sa fac asa:

    [pawn]public OnPlayerPickup ( playerid , pickupid )

    {

      if( pickupid == WeapPick[ playerid ] )

      {

          DestroyPickup( WeapPick[ playerid ] );

      }

      return 1;

    }[/pawn]

    dupa ce am pus imi da!

    D:\sasa.pwn(34) : warning 235: public function lacks forward declaration (symbol "OnPlayerPickup")
    D:\sasa.pwn(36) : error 017: undefined symbol "WeapPick"
    D:\sasa.pwn(36) : warning 215: expression has no effect
    D:\sasa.pwn(36) : error 001: expected token: ";", but found "]"
    D:\sasa.pwn(36) : error 029: invalid expression, assumed zero
    D:\sasa.pwn(36) : fatal error 107: too many error messages on one line
    
    Compilation aborted.Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase
    
    
    4 Errors.
    
    34: public OnPlayerPickup ( playerid , pickupid )
    36: if( pickupid == WeapPick[ playerid ] )

    si la arme sa fac  variabila gen WeapPick[ playerid ] = CreatePickup(...);

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.