004 errors, need help, error includes funtions and undefined terms.
#1

Hello all, I am somewhat new to scripting and when I add something to the middle of the script and compile the Output comes as this.


C:\Users\Justins\Desktop\crp.pwn(1219) : error 017: undefined symbol "ShowServerPassword"
C:\Users\Justins\Desktop\crp.pwn(1354) : error 004: function "FixHour" is not implemented
C:\Users\Justins\Desktop\crp.pwn(1396) : error 004: function "KickPlayer" is not implemented
C:\Users\Justins\Desktop\crp.pwn(1413) : error 017: undefined symbol "ClearScreen"
C:\Users\Justins\Desktop\crp.pwn(1414) : error 004: function "ShowScriptStats" is not implemented
C:\Users\Justins\Desktop\crp.pwn(1416) : error 017: undefined symbol "RPName"
C:\Users\Justins\Desktop\crp.pwn(143 : error 004: function "KickPlayer" is not implemented
C:\Users\Justins\Desktop\crp.pwn(1444) : error 004: function "LoadDynamicFactions" is not implemented
C:\Users\Justins\Desktop\crp.pwn(1445) : error 004: function "LoadDynamicCars" is not implemented
C:\Users\Justins\Desktop\crp.pwn(1446) : error 004: function "LoadCivilianSpawn" is not implemented
C:\Users\Justins\Desktop\crp.pwn(1447) : error 004: function "LoadBuildings" is not implemented
C:\Users\Justins\Desktop\crp.pwn(144 : error 004: function "LoadHouses" is not implemented
C:\Users\Justins\Desktop\crp.pwn(1449) : error 004: function "LoadBusinesses" is not implemented
C:\Users\Justins\Desktop\crp.pwn(1450) : error 004: function "LoadFactionMaterialsStorage" is not implemented
C:\Users\Justins\Desktop\crp.pwn(1451) : error 004: function "LoadFactionDrugsStorage" is not implemented
C:\Users\Justins\Desktop\crp.pwn(1452) : error 004: function "LoadDrivingTestPosition" is not implemented
C:\Users\Justins\Desktop\crp.pwn(1453) : error 004: function "LoadFlyingTestPosition" is not implemented
C:\Users\Justins\Desktop\crp.pwn(1454) : error 004: function "LoadBankPosition" is not implemented
C:\Users\Justins\Desktop\crp.pwn(1455) : error 004: function "LoadWeaponLicensePosition" is not implemented
C:\Users\Justins\Desktop\crp.pwn(1456) : error 004: function "LoadPoliceArrestPosition" is not implemented
C:\Users\Justins\Desktop\crp.pwn(1457) : error 004: function "LoadPoliceDutyPosition" is not implemented
C:\Users\Justins\Desktop\crp.pwn(145 : error 004: function "LoadFive0DutyPosition" is not implemented
C:\Users\Justins\Desktop\crp.pwn(1459) : error 004: function "LoadGunJob" is not implemented
C:\Users\Justins\Desktop\crp.pwn(1460) : error 004: function "LoadDrugJob" is not implemented
C:\Users\Justins\Desktop\crp.pwn(1461) : error 004: function "LoadDetectiveJob" is not implemented
C:\Users\Justins\Desktop\crp.pwn(1462) : error 004: function "LoadLawyerJob" is not implemented

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


26 Errors.


I just added checkpoints to a driving test and this is what it came up with.
Is this a common problem and is this easy to fix?

There are 18328 lines of code and I like to add things but this is what is keeping me from doing it.

If you guys need any more information let me know.

Thanks guys and I hope this can get solved
Reply
#2

Undefined symbols mean they need to be like
pawn Code:
new RPName;
The implemented errors means they needed to be like this:
pawn Code:
Stock LoadBankPosition(....)
Reply
#3

probably a missing { } so check'em
Reply
#4

I understand that when it is saying that something is not implemented that it is not being effective or it cant find where it is being used but here is my problem though, it was fine before I added code. How would that effect these codes now?


If it helps, I added the code below where the errors are so it shouldn't of moved them at all.

Also, I searched for stock and found the ShowServerPassword as a stock code but it still comes up as not implemented. I fixed the define errors though.

This is the stock ShowServerPassword code, it still comes up with the other 26 not implemented errors.



stock ShowServerPassword()
{
new pass[128];
if (strlen(PASSWORD) != 0)
{
format(pass, sizeof pass, "%s", PASSWORD);
}
else
{
pass = "None";
}
return pass;
}
Reply
#5

UPDATE: I added some things like new ShowServerPassword and new RPName and now I have 4 errors

E:\crp.pwn(1220) : warning 219: local variable "ShowServerPassword" shadows a variable at a preceding level
E:\crp.pwn(1221) : error 001: expected token: ";", but found "-identifier-"
E:\crp.pwn(1221) : error 012: invalid function call, not a valid address
E:\crp.pwn(1221) : error 029: invalid expression, assumed zero
E:\crp.pwn(1221) : fatal error 107: too many error messages on one line

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


4 Errors.


here are the lines that the errors are on

main()
{
print("___________________________________________ ______________________________");
printf("> %s - %s by %s loaded.", GAMEMODE,MAP_NAME,DEVELOPER);
printf("> Server Name: %s", SERVER_NAME);
if (!strcmp("Yes", GAMEMODE_USE_VERSION, true)) { printf("> Gamemode: %s - %s", GAMEMODE,VERSION); } else { printf("> Gamemode: %s", GAMEMODE); } // Checking the "GAMEMODE_USE_VERSION" define, if "Yes" then set the gamemode text to the gamemode name & version, else set it to just the gamemode name.
printf("> Version: %s", VERSION);
printf("> Map: %s", MAP_NAME);
printf("> Website: %s", WEBSITE);
printf("> Developer: %s", DEVELOPER);
printf("> Last Update: %s", LAST_UPDATE);
printf("> Current Script Lines: %d", SCRIPT_LINES);
*1220* new ShowServerPassword
*1221* printf("> Password: %s", ShowServerPassword());GetPlayerHealth()
print("___________________________________________ ______________________________");
}



The new ShowServerPassword is one of the "new" codes I added and it only comes up with a warning. The line numbers are *1220* and *1221*.
Reply
#6

Sorry for double post but can anybody help me? I need to get this script functional and there are probably more errors down the line after I fix these 4.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)