EROR!

Započeo LuD1, Jul 12, 2013, 17:05:07 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim : VRP

Detaljan Opis Problema : Imam jedan eror koji neznam da resim a taj eror je ovakav

EROR: symbol is already defined "OnPlayerUpdate"

Evo Ga i Kod :


public OnPlayerUpdate(playerid)
{
   static
      s_iVehicle
   ;

   if ( g_fSpeedCap[ playerid ] != 0.0 && GetPlayerState( playerid ) == PLAYER_STATE_DRIVER )
   {
      s_iVehicle = GetPlayerVehicleID( playerid );

      if ( s_iVehicle )
      {
         static
            Float:s_fX,
            Float:s_fY,
            Float:s_fZ,
            Float:s_fVX,
            Float:s_fVY,
            Float:s_fVZ
         ;

         GetVehiclePos( s_iVehicle, s_fX, s_fY, s_fZ );
         GetVehicleVelocity( s_iVehicle, s_fVX, s_fVY, s_fVZ );

         if ( !IsPlayerInRangeOfPoint( playerid, g_fSpeedCap[ playerid ] + 0.05, s_fX + s_fVX, s_fY + s_fVY, s_fZ + s_fVZ ) )
         {
            static
               Float:s_fLength
            ;

            s_fLength = floatsqroot( ( s_fVX * s_fVX ) + ( s_fVY * s_fVY ) + ( s_fVZ * s_fVZ ) );

            s_fVX = ( s_fVX / s_fLength ) * g_fSpeedCap[ playerid ];
            s_fVY = ( s_fVY / s_fLength ) * g_fSpeedCap[ playerid ];
            s_fVZ = ( s_fVZ / s_fLength ) * g_fSpeedCap[ playerid ];

            if ( s_iVehicle )
               SetVehicleVelocity( s_iVehicle, s_fVX, s_fVY, s_fVZ );
            else
               SetPlayerVelocity( playerid, s_fVX, s_fVY, s_fVZ );
         }
      }
   }

Deo Skripte://


provijeri dali imas jos jedan OnPlayerUpdate u skripti!

IMAM I OVAJ

public OnPlayerUpdateCustom(playerid)
{
   if(IsPlayerConnected(playerid))
   {
      if(gPlayerLogged[playerid])
      {
         new string3[64];
         new playername3[MAX_PLAYER_NAME];
         GetPlayerName(playerid, playername3, sizeof(playername3));
         format(string3, sizeof(string3), "Korisnici/%s.ini", playername3);
         new File: hFile = fopen(string3, io_write);
         if (hFile)
         {

Nije to.
Poslednja Izmena: Jul 12, 2013, 17:30:34 POSLE PODNE od FireMan

Daj mi FB I SKYP DA POGLEDAS TO  :-\