10.10.2016, 15:05
When i try to compile my game mode, i get this error. Please help me, newbie![Sad](images/smilies/sad.gif)
I hope u will help me to fix it. Thanks,
![Sad](images/smilies/sad.gif)
Код:
D:\Software\DayZ\gamemodes\TLOD.pwn(346) : error 017: undefined symbol "SQL_SERVER" D:\Software\DayZ\gamemodes\TLOD.pwn(1373) : error 017: undefined symbol "DIALOG_STYLE_TABLIST_HEADERS" D:\Software\DayZ\gamemodes\TLOD.pwn(2255) : warning 213: tag mismatch
Line 346
Код:
//mysql_log(LOG_ALL); g_SQL = mysql_connect(SQL_SERVER, SQL_USER, SQL_DB, SQL_PASSWORD); if(mysql_errno() != 0) print("Could not connect to database!");
Line 1373
Код:
{ ShowPlayerDialog(playerid,DIALOG_CRAFT,DIALOG_STYLE_TABLIST_HEADERS,"Crafting","Item\tRequires\nChainsaw\t3x iron + 1x rope\nKnife\t1x wood + 1x iron\nBed\t2x Deer skins + 4x wood\nToolbox\t3x copper + 2x iron + 1x wood\nFishing Rod\t1x iron + 1x wood + 1x rope\nBox\t10x woods + 1x hammer\nShovel\t2x copper + 2x wood\nCampfire\t6x wood + 1x rope + 2x iron","Craft","Cancel"); return 1; }
Line 2255
Код:
public FCNPC_Moving(npcid) { new Float:p[3]; pLoop() { if(IsPlayerNPC(i)) continue; GetPlayerPos(i,p[0],p[1],p[2]); if(IsPlayerInRangeOfPoint(npcid,50,p[0],p[1],p[2])) { if(IsPlayerInRangeOfPoint(npcid,1,p[0],p[1],p[2])) { FCNPC_Punch(npcid,p[0],p[1],p[2],50); } else FCNPC_GoTo(npcid,p[0],p[1],p[2],MOVE_TYPE_RUN,10,1); } } } public FCNPC_OnTakeDamage(npcid, damagerid, weaponid, bodypart) { return 1; }