View Single Post
MeRcyLeZZ
Veteran Member
Join Date: Dec 2007
Old 03-24-2009 , 23:42   Re: [TUT] Compiling errors
Reply With Quote #9

It should also be noted that the errors aren't always caused by what the compiler says it's causing them.

For instance, today while I was working on ZP I started getting lots of error 017: undefined symbol "xxxxxx" (screenshot attached to post). About half an hour later I found out it was caused by the following code:
Code:
fnGetSurvivors() {     new iSurvivors, id         for (id = 1; id <= g_maxplayers; id++)     {         if (is_user_alive(id) && g_survivor[id])             iSurvivor++     }         return iSurvivors; }
The highlighted line should read iSurvivors++ instead. After I fixed that, it compiled just fine.


And this is yet another reason why you should regularly backup your files...
Attached Thumbnails
Click image for larger version

Name:	zp_compiler_error.jpg
Views:	893
Size:	97.1 KB
ID:	39464  
__________________
MeRcyLeZZ is offline