SA-MP Forums Archive
Problem with Duel system - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Problem with Duel system (/showthread.php?tid=177482)



Problem with Duel system - RenisiL - 18.09.2010

Problem solved


Re: Problem with Duel system - Retardedwolf - 18.09.2010

Код:
if( dialogid == DIALOG_PVP )
    {
       
        if( ! response )
	    {
                PvpAtmesta( playerid, pid );
	    }
        }
        else
        {
            Pvp = true;

            new
			    name  [ MAX_PLAYER_NAME ],
			    PvpStr[ 44 ];

            GetPlayerName    ( playerid, name, sizeof(  name ) );
            format           ( PvpStr, sizeof( PvpStr ), "%s Įљukis primtas praљome palaukti 6 sekundes." ,name );
            SendClientMessage( PvpZaidejoId[ playerid ],0xF6F600AA, PvpStr );

            SendClientMessage( playerid,0xF6F600AA, "Ikeliamas į pvp arena..." );
            SetTimerEx       ( "PvpPrimta" ,6000,false,"ii" ,playerid, PvpZaidejoId[ playerid ] );
        }
        return 1;
    }
}



Re: Problem with Duel system - RenisiL - 18.09.2010

No problem not with } simbol, but problem with PvpAtmesta( playerid, pid ); << it requires a pid


Re: Problem with Duel system - pen_theGun - 18.09.2010

typo?!
<<<<
sotck PvpAtmesta( playerid, pid );

>>>>
stock PvpAtmesta( playerid, pid );


Re: Problem with Duel system - RenisiL - 18.09.2010

Stock but still the Same problem, same error


Re: Problem with Duel system - RenisiL - 19.09.2010

Bump ))


Re: Problem with Duel system - Retardedwolf - 19.09.2010

What error does it give?
Код:
rror 017: undefined symbol "PvpAtmesta"
?

It should be fixed most probably a spelling error or typo


Re: Problem with Duel system - RenisiL - 19.09.2010

it requires a [pid] as [playerid]


Re: Problem with Duel system - MadeMan - 19.09.2010

pawn Код:
PvpAtmesta( playerid, PvpZaidejoId[ playerid ] );



Re: Problem with Duel system - RenisiL - 19.09.2010

Yes nice idea, thanks [problems solved]