Jump to content

AleX124

Membru
  • Posts

    76
  • Joined

  • Last visited

Posts posted by AleX124

  1. //////////////////////////////////////////////////
    //////////////////////////////////////////////////
    ///        Matraka's Checkpoint Streamer       ///
    ///                                            ///
    /// Author: [MPA]matraka_IDG                   ///
    /// Contact: [email protected]         ///
    ///                                            ///
    ///   ---===Infernus Development Group===---   ///
    //////////////////////////////////////////////////
    //////////////////////////////////////////////////
    
    #include <a_samp>
    
    /*Natives
    native CPS_AddCheckpoint(Float:X,Float:Y,Float:Z,Float:size,Float:spawn_dist);
    native CPS_IsPlayerInCheckpoint(playerid,cpid);
    native CPS_IsPlayerInAnyCheckpoint(playerid,cpid);
    native CPS_RemoveCheckpoint(cpid);
    native CPS_GetPlayerCheckpoint(playerid);
    */
    
    #define MAX_CHECKPOINTS 500
    
    forward CPSERVICE_Handler();
    enum cpinfo
    {
    	Float:cpX,
    	Float:cpY,
    	Float:cpZ,
    	Float:cpsz,
    	cpsd,
    };
    new CPSERVICE_active;
    new Checkpoints[MAX_CHECKPOINTS][cpinfo];
    new UsedCPSlot[MAX_CHECKPOINTS];
    new CPSERVICE_actualcp[MAX_PLAYERS];
    
    stock CPS_AddCheckpoint(Float:X,Float:Y,Float:Z,Float:size,spawn_dist)
    {
    	new cpid=1;
    	while(UsedCPSlot[cpid] == 1) cpid++;
    	if(CPSERVICE_active == 0){
    	    SetTimer("CPSERVICE_Handler",500,true);
    	    CPSERVICE_active=1;
    	}
    	UsedCPSlot[cpid]=1;
    	Checkpoints[cpid][cpX]=X;
    	Checkpoints[cpid][cpY]=Y;
    	Checkpoints[cpid][cpZ]=Z;
    	Checkpoints[cpid][cpsz]=size;
    	Checkpoints[cpid][cpsd]=spawn_dist;
    	return cpid;
    }
    
    stock CPS_IsPlayerInCheckpoint(playerid,cpid)
    {
    	if(!IsPlayerInCheckpoint(playerid)) return 0;
    	if(CPSERVICE_actualcp[playerid] == cpid) return 1;
    	else return 0;
    }
    
    stock CPS_IsPlayerInAnyCheckpoint(playerid)
    {
    	if(!IsPlayerInCheckpoint(playerid)) return 0;
    	if(CPSERVICE_actualcp[playerid] == 0) return 0;
    	else return 1;
    }
    
    stock CPS_GetPlayerCheckpoint(playerid) if(!IsPlayerInCheckpoint(playerid)) return 0; else return CPSERVICE_actualcp[playerid];
    
    stock CPS_RemoveCheckpoint(cpid)
    {
    	if(cpid == 0 || UsedCPSlot[cpid] == 0) return 0;
    	UsedCPSlot[cpid]=0;
    	return 1;
    }
    
    public CPSERVICE_Handler()
    {
    	for(new i; i<MAX_PLAYERS; i++){
    		new Float:prevdist = 100000.000;
    		new prevcp;
    		for(new cpid=1; cpid < MAX_CHECKPOINTS; cpid++){
    			if(UsedCPSlot[cpid]) {
    			    new Float:dist;
    			    dist = CPSERVICE_getdist(i,Checkpoints[cpid][cpX],Checkpoints[cpid][cpY],Checkpoints[cpid][cpZ]);
    				if(dist < prevdist){
    		    		prevdist = dist;
    			 		prevcp = cpid;
    				}
    			}
    		}
    		new cpid=prevcp;
    		if(CPSERVICE_getdist(i,Checkpoints[cpid][cpX],Checkpoints[cpid][cpY],Checkpoints[cpid][cpZ]) < Checkpoints[cpid][cpsd]) {
    		    if(CPSERVICE_actualcp[i] != cpid){
    			    SetPlayerCheckpoint(i,Checkpoints[cpid][cpX],Checkpoints[cpid][cpY],Checkpoints[cpid][cpZ],Checkpoints[cpid][cpsz]);
    			    CPSERVICE_actualcp[i] = cpid;
    			}
    		} else {
    		    if(CPSERVICE_actualcp[i] != 0){
    			    CPSERVICE_actualcp[i] = 0;
    			    DisablePlayerCheckpoint(i);
    			}
    		}
    	}
    	return 1;
    }
    
    stock CPSERVICE_getdist(playerid,Float:x2,Float:y2,Float:z2)
    {
    	new Float:x1,Float:y1,Float:z1;
    	new Float:tmpdis;
    	GetPlayerPos(playerid,x1,y1,z1);
    	tmpdis = floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2));
    	return floatround(tmpdis);
    }
    

  2. Salutare... am o problema imi da aceste errori cand dau compile la gm:

    C:\Users\Alexey.Alexey-PC\Desktop\......\pawno\include\CPLoader.inc(38) : warning 219: local variable "X" shadows a variable at a preceding level

    C:\Users\Alexey.Alexey-PC\Desktop\......\pawno\include\CPLoader.inc(38) : warning 219: local variable "Y" shadows a variable at a preceding level

    C:\Users\Alexey.Alexey-PC\Desktop\......\pawno\include\CPLoader.inc(38) : warning 219: local variable "Z" shadows a variable at a preceding level

    Iar la linia 38 am : #define rules 45

  3. [glow=red,2,300]Imi da 26 de erori  :angry:[/glow]

    C:\Users\Alexey.Alexey-PC\Desktop\armedbody.pwn(32) : error 017: undefined symbol "IsPlayerAttachedObjectSlotUsed"
    C:\Users\Alexey.Alexey-PC\Desktop\armedbody.pwn(33) : error 017: undefined symbol "SetPlayerAttachedObject"
    C:\Users\Alexey.Alexey-PC\Desktop\armedbody.pwn(37) : error 017: undefined symbol "IsPlayerAttachedObjectSlotUsed"
    C:\Users\Alexey.Alexey-PC\Desktop\armedbody.pwn(38) : error 017: undefined symbol "RemovePlayerAttachedObject"
    C:\Users\Alexey.Alexey-PC\Desktop\armedbody.pwn(42) : error 017: undefined symbol "IsPlayerAttachedObjectSlotUsed"
    C:\Users\Alexey.Alexey-PC\Desktop\armedbody.pwn(43) : error 017: undefined symbol "RemovePlayerAttachedObject"
    C:\Users\Alexey.Alexey-PC\Desktop\armedbody.pwn(47) : error 017: undefined symbol "IsPlayerAttachedObjectSlotUsed"
    C:\Users\Alexey.Alexey-PC\Desktop\armedbody.pwn(48) : error 017: undefined symbol "SetPlayerAttachedObject"
    C:\Users\Alexey.Alexey-PC\Desktop\armedbody.pwn(52) : error 017: undefined symbol "IsPlayerAttachedObjectSlotUsed"
    C:\Users\Alexey.Alexey-PC\Desktop\armedbody.pwn(53) : error 017: undefined symbol "RemovePlayerAttachedObject"
    C:\Users\Alexey.Alexey-PC\Desktop\armedbody.pwn(57) : error 017: undefined symbol "IsPlayerAttachedObjectSlotUsed"
    C:\Users\Alexey.Alexey-PC\Desktop\armedbody.pwn(58) : error 017: undefined symbol "RemovePlayerAttachedObject"
    C:\Users\Alexey.Alexey-PC\Desktop\armedbody.pwn(62) : error 017: undefined symbol "IsPlayerAttachedObjectSlotUsed"
    C:\Users\Alexey.Alexey-PC\Desktop\armedbody.pwn(63) : error 017: undefined symbol "SetPlayerAttachedObject"
    C:\Users\Alexey.Alexey-PC\Desktop\armedbody.pwn(67) : error 017: undefined symbol "IsPlayerAttachedObjectSlotUsed"
    C:\Users\Alexey.Alexey-PC\Desktop\armedbody.pwn(68) : error 017: undefined symbol "RemovePlayerAttachedObject"
    C:\Users\Alexey.Alexey-PC\Desktop\armedbody.pwn(72) : error 017: undefined symbol "IsPlayerAttachedObjectSlotUsed"
    C:\Users\Alexey.Alexey-PC\Desktop\armedbody.pwn(73) : error 017: undefined symbol "RemovePlayerAttachedObject"
    C:\Users\Alexey.Alexey-PC\Desktop\armedbody.pwn(77) : error 017: undefined symbol "IsPlayerAttachedObjectSlotUsed"
    C:\Users\Alexey.Alexey-PC\Desktop\armedbody.pwn(78) : error 017: undefined symbol "SetPlayerAttachedObject"
    C:\Users\Alexey.Alexey-PC\Desktop\armedbody.pwn(82) : error 017: undefined symbol "IsPlayerAttachedObjectSlotUsed"
    C:\Users\Alexey.Alexey-PC\Desktop\armedbody.pwn(83) : error 017: undefined symbol "RemovePlayerAttachedObject"
    C:\Users\Alexey.Alexey-PC\Desktop\armedbody.pwn(87) : error 017: undefined symbol "IsPlayerAttachedObjectSlotUsed"
    C:\Users\Alexey.Alexey-PC\Desktop\armedbody.pwn(88) : error 017: undefined symbol "RemovePlayerAttachedObject"
    C:\Users\Alexey.Alexey-PC\Desktop\armedbody.pwn(92) : error 017: undefined symbol "IsPlayerAttachedObjectSlotUsed"
    C:\Users\Alexey.Alexey-PC\Desktop\armedbody.pwn(93) : error 017: undefined symbol "SetPlayerAttachedObject"
    
    Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase
    
    
    26 Errors.

  4. Uitati server_log

    ----------
    Loaded log file: "server_log.txt".
    ----------
    
    SA-MP Dedicated Server
    ----------------------
    v0.3c, (C)2005-2010 SA-MP Team
    
    [13:37:32] 
    [13:37:32] Server Plugins
    [13:37:32] --------------
    [13:37:32]  Loading plugin: whirlpool
    [13:37:32]  
    [13:37:32]  ==================
    [13:37:32]  
    [13:37:32]   Whirlpool loaded
    [13:37:32]  
    [13:37:32]  ==================
    [13:37:32]  
    [13:37:32]   Loaded.
    [13:37:32]  Loading plugin: streamer
    [13:37:32] 
    
    *** Streamer Plugin v2.5 by Incognito loaded ***
    
    [13:37:32]   Loaded.
    [13:37:32]  Loaded 2 plugins.
    
    [13:37:33] 
    [13:37:33] Filter Scripts
    [13:37:33] ---------------
    [13:37:33]   Loading filter script 'ladmin4v2.amx'...
    [13:37:33] 
    ________________________________________
    [13:37:33] ________________________________________
    [13:37:33]            LAdmin Se incarca...         
    [13:37:33] ________________________________________
    [13:37:33] 
     -Configuration Settings Loaded
    [13:37:33]  -39 Forbidden Names Loaded
    [13:37:33]  -10 Forbidden Tags Loaded
    [13:37:33]  -9 Forbidden Words Loaded
    [13:37:33] ________________________________________
    [13:37:33]            LeThal LAdmin Script           
    [13:37:33]               Incarcat                  
    [13:37:33] ________________________________________
    [13:37:33]      Data: 19/2/2011  Time: 13:37 :33   
    [13:37:33] ________________________________________
    [13:37:33] ________________________________________
    
    [13:37:33]   Loading filter script 'adminspec.amx'...
    [13:37:33]   Loading filter script 'base.amx'...
    [13:37:33] 
    --Base FS loaded.
    
    [13:37:33]   Loading filter script 'baseaf.amx'...
    [13:37:33] 
    --Base FS loaded.
    
    [13:37:33]   Loading filter script 'fsdebug.amx'...
    [13:37:33] 
      *********************
      * SA:MP DEBUG 0.2   *
    [13:37:33]   * By Simon Campbell *
      *********************
    [13:37:33]   * Version: 0.5c      *
      *********************
    [13:37:33]   * -- LOADED         *
      *********************
    
    [13:37:33]   Loading filter script 'gl_actions.amx'...
    [13:37:33]   Loading filter script 'gl_chatbubble.amx'...
    [13:37:33] 
    --Speech bubble example loaded.
    
    [13:37:33]   Loading filter script 'gl_mapicon.amx'...
    [13:37:33]   Loading filter script 'gl_npcs.amx'...
    [13:37:34]   Loading filter script 'gl_property.amx'...
    [13:37:34] 
    -----------------------------------
    [13:37:34] Grand Larceny Property Filterscript		
    [13:37:34] -----------------------------------
    
    [13:37:34]   Loading filter script 'gl_realtime.amx'...
    [13:37:34]   Loading filter script 'ls_elevator.amx'...
    [13:37:34]   Loading filter script 'menutest.amx'...
    [13:37:34]   Loaded 13 filter scripts.
    
    [13:37:35] weburl = "www.sa-mp.ro"  (string)
    [13:37:35] Reading File: blank
    [13:37:35] Reading File: properties/houses.txt
    [13:37:35] Reading File: properties/businesses.txt
    [13:37:35] Reading File: properties/banks.txt
    [13:37:35] Reading File: properties/police.txt
    [13:37:35] 
    ----------------------------------
    [13:37:35]   Legend Stunting
     Loading....
    .....
     Loaded 
     Loaded Successfully   
    [13:37:35] ----------------------------------
    
    [13:37:35] Number of vehicle models: 59
    [13:37:37] Incoming connection: 127.0.0.1:65037
    [13:37:37] Incoming connection: 127.0.0.1:65036
    [13:37:37] Incoming connection: 127.0.0.1:65033
    [13:37:37] Incoming connection: 127.0.0.1:65035
    [13:37:37] Incoming connection: 127.0.0.1:65034
    [13:37:37] Incoming connection: 127.0.0.1:65032
    [13:39:23] Incoming connection: 89.122.57.160:56703
    [13:39:23] [join] AleX has joined the server (0:89.122.57.160)

  5. Salutare... Am un srv stunt si cand il pornesc si intru eu pe el! Mi se inchide Consola!

    Uitati ce scrie in crashinfo

    SA-MP Server: 0.3c
    
    
    
    Exception At Address: 0x77552016
    
    
    
    Registers:
    
    EAX: 0x004E53DC	EBX: 0x0012FB18	ECX: 0x006D0000	EDX: 0x0012FB18
    
    ESI: 0x69534329	EDI: 0x0012FB10	EBP: 0x0012E160	ESP: 0x0012E12C
    
    EFLAGS: 0x00010202
    
    
    
    Stack:
    
    +0000: 0x00000000   0x006D0000   0x0012FB18   0x30443030
    
    +0010: 0x00F00002   0x00000004   0x34363030   0x30202020
    
    +0020: 0x37353678   0x006DF3A0   0x00000001   0x006DFAE8
    
    +0030: 0x0012FB10   0x0012E178   0x77551FC7   0x0012FB18
    
    +0040: 0x004C6A64   0x0012FCB0   0x0012FB10   0x0012E18C
    
    +0050: 0x75EFF1CC   0x006D0000   0x00000000   0x0012FB18
    
    +0060: 0x0012E1C8   0x004A27F1   0x006D0000   0x00000000
    
    +0070: 0x0012FB18   0x004C6A64   0x00000000   0x0012FCB0
    
    +0080: 0x0012E19C   0x0012E1A0   0x0012DD38   0x0012E220
    
    +0090: 0x004A6BC4   0x004C11A8   0xFFFFFFFF   0x0012FCBC
    
    +00A0: 0x00464ED9   0x0012FB18   0x004ACFB7   0x004C6A64
    
    +00B0: 0x00000000   0x0012E1F0   0x004C6A44   0x0012FCB0
    
    +00C0: 0x0012FCBC   0x0012E230   0x004AC758   0x004B3EBB
    
    +00D0: 0x0012FCB0   0x00000103   0x19930520   0x004C6A64
    
    +00E0: 0x00000000   0x00000000   0x00000001   0x0012E204
    
    +00F0: 0x0012DD38   0x0012E2A0   0x004A6BC4   0x004C53B8
    
    +0100: 0x00000001   0x0012E250   0x004ACEC6   0x0012FCB0
    
    +0110: 0x0012E398   0x004C6A64   0xFFFFFFFF   0x00000000
    
    +0120: 0x00000000   0x0012E288   0x004A453C   0x0012E2F8
    
    +0130: 0x0012FCB0   0x0012E3A4   0x0012E398   0x004C6A64

    Va Multumesc!

  6. eu foloseam pawno de pe srv defaul 0.3c!

    si mi-a dat si erorile astea:

    C:\Users\Alexey.Alexey-PC\Desktop\pawno\include\JunkBuster.inc(788) : error 017: undefined symbol "SetPlayerMoney"
    C:\Users\Alexey.Alexey-PC\Desktop\pawno\include\JunkBuster.inc(1081) : error 017: undefined symbol "StripNewLine"
    C:\Users\Alexey.Alexey-PC\Desktop\pawno\include\JunkBuster.inc(1109) : error 017: undefined symbol "StripNewLine"
    C:\Users\Alexey.Alexey-PC\Desktop\pawno\include\JunkBuster.inc(1226) : error 017: undefined symbol "StripNewLine"
    C:\Users\Alexey.Alexey-PC\Desktop\pawno\include\JunkBuster.inc(1405) : error 017: undefined symbol "StripNewLine"
    C:\Users\Alexey.Alexey-PC\Desktop\pawno\include\JunkBuster.inc(1470) : error 017: undefined symbol "StripNewLine"
    C:\Users\Alexey.Alexey-PC\Desktop\pawno\include\JunkBuster.inc(1493) : error 017: undefined symbol "StripNewLine"
    C:\Users\Alexey.Alexey-PC\Desktop\pawno\include\JunkBuster.inc(1796) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
    C:\Users\Alexey.Alexey-PC\Desktop\pawno\include\JunkBuster.inc(1849) : error 017: undefined symbol "isNumeric"
    C:\Users\Alexey.Alexey-PC\Desktop\pawno\include\JunkBuster.inc(1957) : error 017: undefined symbol "isNumeric"
    C:\Users\Alexey.Alexey-PC\Desktop\pawno\include\JunkBuster.inc(1985) : error 017: undefined symbol "isNumeric"
    C:\Users\Alexey.Alexey-PC\Desktop\pawno\include\JunkBuster.inc(1994) : error 017: undefined symbol "isNumeric"
    C:\Users\Alexey.Alexey-PC\Desktop\pawno\include\streamer.inc(268) : warning 201: redefinition of constant/macro (symbol "OnGameModeInit")
    C:\Users\Alexey.Alexey-PC\Desktop\pawno\include\streamer.inc(290) : warning 201: redefinition of constant/macro (symbol "OnPlayerConnect")
    C:\Users\Alexey.Alexey-PC\Desktop\pawno\include\streamer.inc(312) : warning 201: redefinition of constant/macro (symbol "OnPlayerDisconnect")
    D:\Diverse -SAMP\RolePlay Legend\gamemodes\gf.pwn(229) : error 025: function heading differs from prototype
    D:\Diverse -SAMP\RolePlay Legend\gamemodes\gf.pwn(290) : error 025: function heading differs from prototype
    D:\Diverse -SAMP\RolePlay Legend\gamemodes\gf.pwn(868) : error 025: function heading differs from prototype

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