Jump to content

Zut

Membru
  • Posts

    6
  • Joined

  • Last visited

    Never

Posts posted by Zut

  1. Nick: Zut

    Problema: Am un gang system si imi da niste erori

    Erori / warnings: [pawn]

    C:\Users\Sergiu\Desktop\Untitled.pwn(5) : error 017: undefined symbol "cpTeritory"

    C:\Users\Sergiu\Desktop\Untitled.pwn(5) : warning 217: loose indentation

    C:\Users\Sergiu\Desktop\Untitled.pwn(5) : warning 215: expression has no effect

    C:\Users\Sergiu\Desktop\Untitled.pwn(5) : error 001: expected token: ";", but found "]"

    C:\Users\Sergiu\Desktop\Untitled.pwn(5) : error 029: invalid expression, assumed zero

    C:\Users\Sergiu\Desktop\Untitled.pwn(5) : fatal error 107: too many error messages on one line

    Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

    4 Errors.[/pawn]

    Lini/script: [pawn]//==============================================================================

    public OnPlayerEnterDynamicCP( playerid, checkpointid )

    {

        new

    TerID = cpTeritory [checkpointid];

    if ( TerID != 0 )

    {

        if ( Users[ playerid ][ gang ] == 0 )

            return 1;

        if ( Teritories[ TerID ][ owner ] == Users[ playerid ][ gang ] )

    return 1;

    if ( GetGVarInt( "g_Ally", Teritories[ TerID ][ owner ] ) != 0 )

    {

    if ( Teritories[ TerID ][ owner ] == GetGVarInt( "g_Ally", Users[ playerid ][ gang ] ) )

    return Announce( playerid, "~w~You have alliance with this gang !", 3000, 4 );

    }

        if ( Teritories[ TerID ][ turfing ] == true )

    return 1;

    Teritories[ TerID ][ turfing ] = true;

        Teritories[ TerID ][ turfingby ] = Users[ playerid ][ gang ];

        Users[ playerid ][ turfe ] = TerID;

        GangZoneFlashForAll( Teritories[ TerID ][ ID ], GangColors[ GetGVarInt( "g_Color", Users[ playerid ][ gang ] ) ] );

        SetTimerEx( "ProgresTurfing", 999, 0, "i", playerid );

        gsString[ 0 ] = EOS;

    format( gsString, sizeof( gsString ), "> WARNING <: {FFFFFF}Gang '{FF0000}%s{FFFFFF}' trying to capture your base !", GetGVarStringEx( "g_Name", Users[ playerid ][ gang ] ) );

    SendGangMessage( Teritories[ TerID ][ owner ], gsString );

    }

    ; [/pawn]

    Ai incercat sa rezolvi singur ?:

  2. Nume: Zut

    Nume tutorial: Une pun acest pawn code...random hostname

    Descriere: Unde pun acest pawn code...random hostname

    [pawn]forward ChangeHostname();

    public OnFilterScriptInit()

    {

      SetTimer("ChangeHostname",1000,1); // Change the, 1000 to whatever you want, in milliseconds ofc.

      return 1;

    }

    public ChangeHostname()

    {

      new var = random(3);

      switch (var)

      {

        case 0: SendRconCommand("hostname Server name 1");

        case 1: SendRconCommand("hostname Server name 2");

        case 2: SendRconCommand("hostname Server name 3");

      }

    }[/pawn]

×
×
  • 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.