SA-MP Forums Archive
Weird errors I dont understand. - 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)
+--- Thread: Weird errors I dont understand. (/showthread.php?tid=645266)



Weird errors I dont understand. - Lant - 24.11.2017

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;
}




Re: Weird errors I dont understand. - PaulDinam - 24.11.2017

Those two commands are already defined somewhere in your script.


Re: Weird errors I dont understand. - Lant - 24.11.2017

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


Re: Weird errors I dont understand. - HK - 24.11.2017

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


Re: Weird errors I dont understand. - Lant - 24.11.2017

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


Re: Weird errors I dont understand. - HK - 24.11.2017

Try removing the defines from the inc file.