[POMOC]Nemogu da compilam kako treba.

Započeo PeePe, April 09, 2011, 10:01:48 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Balkan ExCove


Detaljan opis problema: Kad hocu da compilam kaze mi:

(46796) : error 021: symbol already defined: "NameTimer"

A kad stavim #include <NameTimer> gore i compilam kaze mi Cannot Read From File. Molim vas kazite mi kako da to popravim


Dio skripte:public NameTimer()
}
foreach (Player, i)
{
foreach (Player, q)
{
new Float:p1x;
new Float:p1y;
new Float:p1z;
new Float:p2x;
new Float:p2y;
new Float:p2z;
if(IsPlayerConnected(i) && IsPlayerConnected(q))
{
GetPlayerPos(i,p1x,p1y,p1z);
    GetPlayerPos(q,p2x,p2y,p2z);
if(GetPointDistanceToPointExMorph(p1x,p1y,p1z,p2x,p2y,p2z) < pdistance)
{
if(PlayerInfo[q][pMaskuse] != 1)
    {
ShowPlayerNameTagForPlayer(i,q,1);
}
    }
else
{
ShowPlayerNameTagForPlayer(i,q,0);
                }
            }
        }
}
}


public CheckCarHealth()
{
    new string[128];
    new sendername[MAX_PLAYER_NAME];
    for (new i=0; i < MAX_PLAYERS; i++)
    {
        if (IsPlayerConnected(i) && IsPlayerInAnyVehicle(i) && GetPlayerState(i) == PLAYER_STATE_DRIVER)
        {
             new Float:health;
             GetVehicleHealth(GetPlayerVehicleID(i),health);
             new newcar = GetPlayerVehicleID(i);
             if (health <= 400 && !IsABoat(newcar) && !IsABike(newcar) && !IsAPlane(newcar) && !IsAHarvest(newcar) && !IsADrugHarvest(newcar) && !IsASweeper(newcar) && !IsARaceCar(newcar))
             {
                 if(engineOn[GetPlayerVehicleID(i)] == 1)
                 {
                    if(GetPlayerState(i) == PLAYER_STATE_DRIVER)
                    {
                    TogglePlayerControllable(i, 0);
                  SendClientMessage(i, COLOR_LIGHT_BLUE, "Pokvario vam se motor, probajte opet da ga upalite ili zovite mehanicara! (/exit da izadjete)");
                  engineOn[GetPlayerVehicleID(i)] = false;
                  GetPlayerName(i, sendername, sizeof(sendername));
                  format(string, sizeof(string), "* Motor se pokvario... (( %s ))", sendername);
ProxDetector(30.0, i, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}



Neke slike/video za lakse dobivanje pomoci(neobavezno): /

Hvala

poznaticovik

NameTimer nije include , Morphinc je include za NameTimer

CTRL+F, upisi u konzolu "NameTimer" i obrisi ga kad ga nadjes.



Al imaju na vise mjesta NameTimer, i kad obrisem bude opet erora

poznaticovik

Citat: PeePe poslato April 09, 2011, 10:18:43 PRE PODNE
Al imaju na vise mjesta NameTimer, i kad obrisem bude opet erora

ObriÅ¡i sve kodove sa "NameTimer" i napiÅ¡i koji errori doÄ'u.

Vidis da pise da vec postoji nametimer,obrisi ovaj nametimer i onda compile-uj i vidi .

Izbrisi samo owo . . pa javi sto ti dode . . iako nebi trebalo nista . .

public NameTimer()
}
foreach (Player, i)
{
foreach (Player, q)
{
new Float:p1x;
new Float:p1y;
new Float:p1z;
new Float:p2x;
new Float:p2y;
new Float:p2z;
if(IsPlayerConnected(i) && IsPlayerConnected(q))
{
GetPlayerPos(i,p1x,p1y,p1z);
    GetPlayerPos(q,p2x,p2y,p2z);
if(GetPointDistanceToPointExMorph(p1x,p1y,p1z,p2x,p2y,p2z) < pdistance)
{
if(PlayerInfo[q][pMaskuse] != 1)
    {
ShowPlayerNameTagForPlayer(i,q,1);
}
    }
else
{
ShowPlayerNameTagForPlayer(i,q,0);
                }
            }
        }
}
}
Mike Marquez | House of Rave is Trippy Place ! |