Function Not Implemented.
#1

guys when compiling my GM i get these errors they all refer to the native SA:MP callbacks saying that they are not implemented

ERRORS:
Код:
C:\Users\Saad\Desktop\Armored Warefare 1\pawno\include\SAMsites0.4.1.inc(145) : error 004: function "OnSamSiteUpdate" is not implemented
C:\Users\Saad\Desktop\Armored Warefare 1\gamemodes\AW.pwn(100) : error 017: undefined symbol "ResetMissles"
C:\Users\Saad\Desktop\Armored Warefare 1\gamemodes\AW.pwn(914) : warning 217: loose indentation
C:\Users\Saad\Desktop\Armored Warefare 1\gamemodes\AW.pwn(942) : warning 217: loose indentation
C:\Users\Saad\Desktop\Armored Warefare 1\gamemodes\AW.pwn(942) : error 029: invalid expression, assumed zero
C:\Users\Saad\Desktop\Armored Warefare 1\gamemodes\AW.pwn(942) : error 004: function "OnVehicleMod" is not implemented
C:\Users\Saad\Desktop\Armored Warefare 1\gamemodes\AW.pwn(947) : warning 225: unreachable code
C:\Users\Saad\Desktop\Armored Warefare 1\gamemodes\AW.pwn(947) : error 029: invalid expression, assumed zero
C:\Users\Saad\Desktop\Armored Warefare 1\gamemodes\AW.pwn(947) : error 004: function "OnVehiclePaintjob" is not implemented
C:\Users\Saad\Desktop\Armored Warefare 1\gamemodes\AW.pwn(952) : warning 225: unreachable code
C:\Users\Saad\Desktop\Armored Warefare 1\gamemodes\AW.pwn(952) : error 029: invalid expression, assumed zero
C:\Users\Saad\Desktop\Armored Warefare 1\gamemodes\AW.pwn(952) : error 004: function "OnVehicleRespray" is not implemented
C:\Users\Saad\Desktop\Armored Warefare 1\gamemodes\AW.pwn(957) : warning 225: unreachable code
C:\Users\Saad\Desktop\Armored Warefare 1\gamemodes\AW.pwn(957) : error 029: invalid expression, assumed zero
C:\Users\Saad\Desktop\Armored Warefare 1\gamemodes\AW.pwn(957) : error 004: function "OnPlayerSelectedMenuRow" is not implemented
C:\Users\Saad\Desktop\Armored Warefare 1\gamemodes\AW.pwn(962) : warning 225: unreachable code
C:\Users\Saad\Desktop\Armored Warefare 1\gamemodes\AW.pwn(962) : error 029: invalid expression, assumed zero
C:\Users\Saad\Desktop\Armored Warefare 1\gamemodes\AW.pwn(962) : error 004: function "OnPlayerExitedMenu" is not implemented
C:\Users\Saad\Desktop\Armored Warefare 1\gamemodes\AW.pwn(967) : warning 225: unreachable code
C:\Users\Saad\Desktop\Armored Warefare 1\gamemodes\AW.pwn(967) : error 029: invalid expression, assumed zero
C:\Users\Saad\Desktop\Armored Warefare 1\gamemodes\AW.pwn(967) : error 004: function "OnPlayerInteriorChange" is not implemented
C:\Users\Saad\Desktop\Armored Warefare 1\gamemodes\AW.pwn(972) : warning 225: unreachable code
C:\Users\Saad\Desktop\Armored Warefare 1\gamemodes\AW.pwn(972) : error 029: invalid expression, assumed zero
C:\Users\Saad\Desktop\Armored Warefare 1\gamemodes\AW.pwn(972) : error 004: function "OnPlayerKeyStateChange" is not implemented
C:\Users\Saad\Desktop\Armored Warefare 1\gamemodes\AW.pwn(977) : warning 225: unreachable code
C:\Users\Saad\Desktop\Armored Warefare 1\gamemodes\AW.pwn(977) : error 029: invalid expression, assumed zero
C:\Users\Saad\Desktop\Armored Warefare 1\gamemodes\AW.pwn(977) : error 004: function "OnRconLoginAttempt" is not implemented
C:\Users\Saad\Desktop\Armored Warefare 1\gamemodes\AW.pwn(982) : warning 225: unreachable code
C:\Users\Saad\Desktop\Armored Warefare 1\gamemodes\AW.pwn(982) : error 029: invalid expression, assumed zero
C:\Users\Saad\Desktop\Armored Warefare 1\gamemodes\AW.pwn(982) : error 004: function "OnPlayerUpdate" is not implemented
C:\Users\Saad\Desktop\Armored Warefare 1\gamemodes\AW.pwn(987) : warning 225: unreachable code
C:\Users\Saad\Desktop\Armored Warefare 1\gamemodes\AW.pwn(987) : error 029: invalid expression, assumed zero
C:\Users\Saad\Desktop\Armored Warefare 1\gamemodes\AW.pwn(987) : error 004: function "OnPlayerStreamIn" is not implemented
C:\Users\Saad\Desktop\Armored Warefare 1\gamemodes\AW.pwn(992) : warning 225: unreachable code
C:\Users\Saad\Desktop\Armored Warefare 1\gamemodes\AW.pwn(992) : error 029: invalid expression, assumed zero
C:\Users\Saad\Desktop\Armored Warefare 1\gamemodes\AW.pwn(992) : error 004: function "OnPlayerStreamOut" is not implemented
C:\Users\Saad\Desktop\Armored Warefare 1\gamemodes\AW.pwn(997) : warning 225: unreachable code
C:\Users\Saad\Desktop\Armored Warefare 1\gamemodes\AW.pwn(997) : error 029: invalid expression, assumed zero
C:\Users\Saad\Desktop\Armored Warefare 1\gamemodes\AW.pwn(997) : error 004: function "OnVehicleStreamIn" is not implemented

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


26 Errors.
Can someone solve this and tell me what's wrong without posting the actual codes cause they are only referring to normal callbacks nothing special.
Reply
#2

You have outdated server + OnSamSiteUpdate is a filterscript callback (search the forums).
Reply
#3

Quote:
Originally Posted by Misiur
Посмотреть сообщение
You have outdated server + OnSamSiteUpdate is a filterscript callback (search the forums).
No i have SA:MP 0.3e R2 server pack and the SAM site thing worked fine on another script it is an include.
Reply
#4

Ok. Show AW.pwn lines 95-105, 909-919, 937-947. You are probably missing a bracket (26 errors is usually it)
Reply
#5

Quote:
Originally Posted by Misiur
Посмотреть сообщение
Ok. Show AW.pwn lines 95-105, 909-919, 937-947. You are probably missing a bracket (26 errors is usually it)
Quote:

(26 errors is usually it)

26 ERRORS is the number of errors the compiler has outputted not a code for something.
Reply
#6

I know that, and that error count is typical for missing closing bracket. Please show code, or count your "{" to "}" ratio
Reply
#7

This is all of the code check if you find any missing brackets or anything http://pastebin.com/RGwQxdNS.
Reply
#8

'{' Count: 100
'}' Count: 98

1. You have to place ResetMissiles before OnGameModeInit
2.
pawn Код:
if(pickupid == pickup2)
    {
        if (gTeam[playerid] == TEAM_BLUE)
        {
            for(new i = 0; i < sizeof(totalobj); i ++)
        {
        DestroyObject(totalobj[i]);
    }

//Change to

    if(pickupid == pickup2 && gTeam[playerid] == TEAM_BLUE)
    {
        for(new i = 0; i < sizeof(totalobj); i++) DestroyObject(totalobj[i]);
    }
Any other errors?
Reply
#9

What do you mean by place ResetMisiles Before OnGameModeInit() where should i place them in then which callback ?

EDIT: never mind i fixed it Thank you.
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)