Error 017 after compile
#1

Hi just creating a dynamic house system for my script and i got a compile error and i was wondering if you could help me, here is the compile output and lines with the error:

Compile Output:
Код:
F:\NRP - New\gamemodes\NRP.pwn(516) : error 017: undefined symbol "var"
F:\NRP - New\gamemodes\NRP.pwn(516) : error 017: undefined symbol "hFile"
F:\NRP - New\gamemodes\NRP.pwn(517) : error 017: undefined symbol "var"
F:\NRP - New\gamemodes\NRP.pwn(517) : error 017: undefined symbol "hFile"
F:\NRP - New\gamemodes\NRP.pwn(518) : error 017: undefined symbol "var"
F:\NRP - New\gamemodes\NRP.pwn(518) : error 017: undefined symbol "hFile"
F:\NRP - New\gamemodes\NRP.pwn(519) : error 017: undefined symbol "var"
F:\NRP - New\gamemodes\NRP.pwn(519) : error 017: undefined symbol "hFile"
F:\NRP - New\gamemodes\NRP.pwn(520) : error 017: undefined symbol "var"
F:\NRP - New\gamemodes\NRP.pwn(520) : error 017: undefined symbol "hFile"
F:\NRP - New\gamemodes\NRP.pwn(521) : error 017: undefined symbol "var"
F:\NRP - New\gamemodes\NRP.pwn(521) : error 017: undefined symbol "hFile"
F:\NRP - New\gamemodes\NRP.pwn(522) : error 017: undefined symbol "var"
F:\NRP - New\gamemodes\NRP.pwn(522) : error 017: undefined symbol "hFile"
F:\NRP - New\gamemodes\NRP.pwn(523) : error 017: undefined symbol "var"
F:\NRP - New\gamemodes\NRP.pwn(523) : error 017: undefined symbol "hFile"
F:\NRP - New\gamemodes\NRP.pwn(524) : error 017: undefined symbol "var"
F:\NRP - New\gamemodes\NRP.pwn(524) : error 017: undefined symbol "hFile"
F:\NRP - New\gamemodes\NRP.pwn(525) : error 017: undefined symbol "var"
F:\NRP - New\gamemodes\NRP.pwn(525) : error 017: undefined symbol "hFile"
F:\NRP - New\gamemodes\NRP.pwn(526) : error 017: undefined symbol "var"
F:\NRP - New\gamemodes\NRP.pwn(526) : error 017: undefined symbol "hFile"
F:\NRP - New\gamemodes\NRP.pwn(527) : error 017: undefined symbol "var"
F:\NRP - New\gamemodes\NRP.pwn(527) : error 017: undefined symbol "hFile"
F:\NRP - New\gamemodes\NRP.pwn(528) : error 017: undefined symbol "var"
F:\NRP - New\gamemodes\NRP.pwn(528) : error 017: undefined symbol "hFile"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
Line 516 to 528
pawn Код:
format(var, 32, "pHouseX=%.1f\n",PlayerInfo[playerid][pHouseX]);fwrite(hFile, var);
        format(var, 32, "pHouseY=%.1f\n",PlayerInfo[playerid][pHouseY]);fwrite(hFile, var);
        format(var, 32, "pHouseZ=%.1f\n",PlayerInfo[playerid][pHouseZ]);fwrite(hFile, var);
        format(var, 32, "pHouseVW=%d\n",PlayerInfo[playerid][pHouseVW]);fwrite(hFile, var);
        format(var, 32, "pHouseIntX=%.1f\n",PlayerInfo[playerid][pHouseIntX]);fwrite(hFile, var);
        format(var, 32, "pHouseIntY=%.1f\n",PlayerInfo[playerid][pHouseIntY]);fwrite(hFile, var);
        format(var, 32, "pHouseIntZ=%.1f\n",PlayerInfo[playerid][pHouseIntZ]);fwrite(hFile, var);
        format(var, 32, "pHouseInt=%d\n",PlayerInfo[playerid][pHouseInt]);fwrite(hFile, var);
        format(var, 32, "pHouseCarX=%.1f\n",PlayerInfo[playerid][pHouseCarX]);fwrite(hFile, var);
        format(var, 32, "pHouseCarY=%.1f\n",PlayerInfo[playerid][pHouseCarY]);fwrite(hFile, var);
        format(var, 32, "pHouseCarZ=%.1f\n",PlayerInfo[playerid][pHouseCarZ]);fwrite(hFile, var);
        format(var, 32, "pHouseCarAngle=%.1f\n",PlayerInfo[playerid][pHouseCarAngle]);fwrite(hFile, var);
        format(var, 32, "pHouseCarId=%d\n",PlayerInfo[playerid][pHouseCarId]);fwrite(hFile, var);
All help will be appreciated, also i think i may be missing a include but not sure which!
Reply
#2

Why dont you take a look at what the error is actually telling you. They are quite informative.

"Undefined symbol 'var'"

So you never defined the variable "var."

So,

pawn Код:
new var[32];
Simple.
Reply
#3

Quote:
Originally Posted by Storm203
Посмотреть сообщение
Why dont you take a look at what the error is actually telling you. They are quite informative.

"Undefined symbol 'var'"

So you never defined the variable "var."

So,

pawn Код:
new var[32];
Simple.
Ok but what am i going to define hfile as?
Reply
#4

I dont know. I dont work with INIs in my script, so I dont know what you would define it as. If you were truly writing this script (which I suspect youre not), you would know how to define it. I suggest you check out the SAMP wiki to help with scripting, or the tutorials subforum, as this is a very simple error.
Reply
#5

Quote:
Originally Posted by Storm203
Посмотреть сообщение
I dont know. I dont work with INIs in my script, so I dont know what you would define it as. If you were truly writing this script (which I suspect youre not), you would know how to define it. I suggest you check out the SAMP wiki to help with scripting, or the tutorials subforum, as this is a very simple error.
Well im not doing the coding ALL on my own im following a tutorial which is: Here but he hasnt said what to define it as.

Furthermore if you are going to be such a bitch about it why comment?, usually i thank people who help me by +repping them but im not going to +rep you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)