Zut
-
Posts
6 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
News
Documentation
Posts posted by Zut
-
-
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 ?:
-
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]
-
asta e bun?
Nu merge /createpoarta...
-
Hmm.. asta e ok?
Nu...era bun daca puteam sa misc gate unde vreau si fara parole...adica vreau fs gate pentru gang-uri
-
Nume: Zut
Nume tutorial: Fs Gate
Descriere: Un fs care pot face gate...dar sa pot face cu o comanda direct de pe server...cu rcon...
Vreau sa stiu cum sa-l fac sau chiar gata facut
Random Game Text
in Filterscript-uri
Posted
Aia e poza mea =))
Mersi :)