Weird errors I dont understand.
#1

I dont see whats wrong with them...

Quote:

C:\Users\tiiu\Desktop\1337\pawno\include\YSF.inc(7 1) : error 021: symbol already defined: "GetObjectModel"
C:\Users\tiiu\Desktop\1337\pawno\include\YSF.inc(8 3) : error 021: symbol already defined: "GetPlayerObjectModel"
scrp/vara.pwn(8295) : error 021: symbol already defined: "cmd_lisam2rk"
scrp/vara.pwn(8321) : error 021: symbol already defined: "cmd_eemaldam2rk"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

Lines:
pawn Код:
YSF.inc(71): native GetObjectModel(objectid);
YSF.inc(83): native GetPlayerObjectModel(playerid, objectid);
Quote:

CMD:lisam2rk(playerid, p[])
{ //------------ THIS IS THE LINE vara.pwn(8295)
if (KasutajaInfo[playerid][mAdmin] < 5) return SCM(playerid, COLOR_RED, "Sa pead selle kдskluse kasutamiseks olema vдhemalt level 3 administraator.");
if (Iter_Count(Liiklusmargid) >= MAX_MARGID) return SCM(playerid, COLOR_RED, "Praegu ei saa liiklusmдrke lisada (Limiit on tдis)."), printf("[VIGA]: Taksofonide maksimaalne arv (MAX_PAYPHONES = %i) on tдis/ьletatud!", MAX_PAYPHONES);
new type, tekst[12];
if (sscanf(p, "iS()[12]", type, tekst)) return SCM(playerid, COLOR_WHITE, "KASUTUS: /lisamдrk <Mдrgi tььp (0 - 22)> <Tekst (Vajadusel)>");
if (type < 0 || type > 22) return SCM(playerid, COLOR_WHITE, "KASUTUS: /lisamдrk <Mдrgi tььp (0 - 22)> <Tekst (Vajadusel)>");
new string[512], Floatos[4];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
GetXYInFrontOfPlayer(playerid, pos[0], pos[1], 1);
GetPlayerFacingAngle(playerid, pos[3]);
mysql_format(db, string, sizeof(string), "INSERT INTO liiklusmargid (posX, posY, posZ, rot, type, tekst) VALUES ('%f', '%f', '%f', '%f', %i, '%e')",
pos[0], pos[1], pos[2], pos[3], type, tekst);
new Cache:r = mysql_query(db, string), id = cache_insert_id();
cache_delete®;
new id2 = Iter_Free(Liiklusmargid);
MargiInfo[id2][mID] = id;
MargiInfo[id2][mType] = type;
safestrcpy(MargiInfo[id2][mText], tekst, 12);
for (new i; i < 4; i++) MargiInfo[id2][mPos][i] = pos[i];
CreateTrafficSign(id2, type, pos[0], pos[1], pos[2], pos[3], 200, tekst);
Iter_Add(Liiklusmargid, id2);
SCM(playerid, COLOR_WHITE, "Lisasid liiklusmдrgi!");
return 1;
}

CMD:eemaldam2rk(playerid, p[])
{ //-------- THIS IS THE LINE vara.pwn(8321)!
if (KasutajaInfo[playerid][mAdmin] < 5) return SCM(playerid, COLOR_RED, "Sa pead selle kдskluse kasutamiseks olema vдhemalt level 3 administraator.");
tegevusobjektiga[playerid] = SELECT_OBJECT_SIGN;
SCM(playerid, COLOR_WHITE, "Vali liiklusmдrk, mida soovid eemaldada.");
SelectObject(playerid);
return 1;
}

Reply
#2

Those two commands are already defined somewhere in your script.
Reply
#3

Quote:
Originally Posted by PaulDinam
Посмотреть сообщение
Those two commands are already defined somewhere in your script.
They arent... Thats the weird thing about it. And next are YSF errors, how can there be errors if its the original one from the forum...
Reply
#4

Sure that it's not defined in the main GM?
Reply
#5

Quote:
Originally Posted by HK
Посмотреть сообщение
Sure that it's not defined in the main GM?
Tried to find, and nope.
Reply
#6

Try removing the defines from the inc file.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)