SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 17/12/2011, 09:58 AM   #1
MustangV10
Big Clucker
 
Join Date: Dec 2011
Posts: 157
Reputation: 11
Default Undefined symbol

Get this when compiling a script:
Quote:
C:\Users\admin\Desktop\ladmin4v2.pwn(239) : error 017: undefined symbol "UpdateConfig"
C:\Users\admin\Desktop\ladmin4v2.pwn(661) : error 017: undefined symbol "DestroyAllMenus"
C:\Users\admin\Desktop\ladmin4v2.pwn(724) : error 017: undefined symbol "PlayerName2"
C:\Users\admin\Desktop\ladmin4v2.pwn(729) : error 017: undefined symbol "SaveToFile"
C:\Users\admin\Desktop\ladmin4v2.pwn(73 : error 017: undefined symbol "SaveToFile"
C:\Users\admin\Desktop\ladmin4v2.pwn(752) : error 017: undefined symbol "SaveToFile"
C:\Users\admin\Desktop\ladmin4v2.pwn(775) : error 017: undefined symbol "PlayerName2"
C:\Users\admin\Desktop\ladmin4v2.pwn(804) : error 017: undefined symbol "PlayerName2"
C:\Users\admin\Desktop\ladmin4v2.pwn(805) : error 017: undefined symbol "SaveToFile"
C:\Users\admin\Desktop\ladmin4v2.pwn(82 : error 017: undefined symbol "SavePlayer"
C:\Users\admin\Desktop\ladmin4v2.pwn(829) : error 017: undefined symbol "PlayerName2"
C:\Users\admin\Desktop\ladmin4v2.pwn(829) : error 017: undefined symbol "PlayerName2"
C:\Users\admin\Desktop\ladmin4v2.pwn(839) : error 017: undefined symbol "CarDeleter"
C:\Users\admin\Desktop\ladmin4v2.pwn(844) : error 017: undefined symbol "AdvanceSpectate"
C:\Users\admin\Desktop\ladmin4v2.pwn(903) : error 017: undefined symbol "PlayerName2"
C:\Users\admin\Desktop\ladmin4v2.pwn(905) : error 017: undefined symbol "PlayerName2"
C:\Users\admin\Desktop\ladmin4v2.pwn(912) : error 017: undefined symbol "PlayerName2"
C:\Users\admin\Desktop\ladmin4v2.pwn(913) : error 017: undefined symbol "PlayerName2"
C:\Users\admin\Desktop\ladmin4v2.pwn(914) : error 017: undefined symbol "PlayerName2"
C:\Users\admin\Desktop\ladmin4v2.pwn(915) : error 017: undefined symbol "PlayerName2"
C:\Users\admin\Desktop\ladmin4v2.pwn(916) : error 017: undefined symbol "PlayerName2"
C:\Users\admin\Desktop\ladmin4v2.pwn(917) : error 017: undefined symbol "PlayerName2"
C:\Users\admin\Desktop\ladmin4v2.pwn(956) : error 017: undefined symbol "AdvanceSpectate"
C:\Users\admin\Desktop\ladmin4v2.pwn(969) : error 017: undefined symbol "MessageToAdmins"
C:\Users\admin\Desktop\ladmin4v2.pwn(987) : error 017: undefined symbol "PlayerName2"
C:\Users\admin\Desktop\ladmin4v2.pwn(989) : error 017: undefined symbol "SaveToFile"

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.
Pawn:
http://pastebin.com/14GgFQzR

Any ideas to fix these?

Cheers.
MustangV10 is offline   Reply With Quote
Old 17/12/2011, 10:02 AM   #2
=WoR=Varth
High-roller
 
=WoR=Varth's Avatar
 
Join Date: Apr 2011
Location: Indonesia
Posts: 2,076
Reputation: 126
Default Re: Undefined symbol

Probably missing bracket.
__________________
Looking for scripter? PM me (NOPE RETIRED)
=WoR=Varth is offline   Reply With Quote
Old 17/12/2011, 10:10 AM   #3
MustangV10
Big Clucker
 
Join Date: Dec 2011
Posts: 157
Reputation: 11
Default Re: Undefined symbol

Quote:
Originally Posted by =WoR=Varth View Post
Probably missing bracket.
Is there any way to find out where that could be?
MustangV10 is offline   Reply With Quote
Old 17/12/2011, 10:15 AM   #4
Ironboy
High-roller
 
Ironboy's Avatar
 
Join Date: Nov 2010
Location: United Arab Emirates
Posts: 1,670
Reputation: 368
Default Re: Undefined symbol

Quote:
Originally Posted by MustangV10 View Post
Is there any way to find out where that could be?
Check the place where you last edited.
__________________
Ironboy is offline   Reply With Quote
Old 17/12/2011, 10:25 AM   #5
MustangV10
Big Clucker
 
Join Date: Dec 2011
Posts: 157
Reputation: 11
Default Re: Undefined symbol

Quote:
Originally Posted by Ironboy View Post
Check the place where you last edited.
I can't remember where I last edited.
MustangV10 is offline   Reply With Quote
Old 17/12/2011, 10:27 AM   #6
Kostas'
High-roller
 
Kostas''s Avatar
 
Join Date: Sep 2011
Location: Athens, Greece
Posts: 1,103
Reputation: 100
Default Re: Undefined symbol

Missing bracket. However, you didn't return a value in some commands and you used dcmd with strcmp. You should use only one of them. I fixed it, I hope to work.
Click Me!
__________________
Knowledge:
  • HTML
  • Pascal
  • Visual Basic
  • Algorithm
    • Pseudocode
Kostas' is offline   Reply With Quote
Old 17/12/2011, 10:28 AM   #7
Dripac
High-roller
 
Dripac's Avatar
 
Join Date: Apr 2009
Location: Austria
Posts: 1,701
Reputation: 236
Default Re: Undefined symbol

Try this

http://forum.sa-mp.com/showthread.php?t=171429
Dripac is offline   Reply With Quote
Old 17/12/2011, 10:32 AM   #8
MustangV10
Big Clucker
 
Join Date: Dec 2011
Posts: 157
Reputation: 11
Default Re: Undefined symbol

Quote:
Originally Posted by Kostas' View Post
Missing bracket. However, you didn't return a value in some commands and you used dcmd with strcmp. You should use only one of them. I fixed it, I hope to work.
Click Me!
Thanks, I get this when compiling now:

Quote:
C:\Users\admin\Desktop\ladmin4v2.pwn(6525) : error 021: symbol already defined: "strtok"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Any ideas?
MustangV10 is offline   Reply With Quote
Old 17/12/2011, 10:34 AM   #9
Kostas'
High-roller
 
Kostas''s Avatar
 
Join Date: Sep 2011
Location: Athens, Greece
Posts: 1,103
Reputation: 100
Default Re: Undefined symbol

Just remove this from line 6524
pawn Code:
stock strtok(const string[], &index,seperator=' ')
{
    new length = strlen(string);
    new offset = index;
    new result[MAX_STRING];
    while ((index < length) && (string[index] != seperator) && ((index - offset) < (sizeof(result) - 1)))
    {
        result[index - offset] = string[index];
        index++;
    }

    result[index - offset] = EOS;
    if ((index < length) && (string[index] == seperator))
    {
        index++;
    }
    return result;
}
__________________
Knowledge:
  • HTML
  • Pascal
  • Visual Basic
  • Algorithm
    • Pseudocode
Kostas' is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How come this says undefined symbol? rangerxxll Scripting Help 7 14/09/2011 06:17 AM
[HELP]Undefined symbol errors when symbol is defined PCheriyan007 Help Archive 9 07/07/2011 01:09 AM
undefined symbol help please darkmagic2 Help Archive 2 04/09/2009 08:05 PM
[DM] undefined symbol Dawior Help Archive 9 02/09/2009 12:52 PM
Undefined symbol JoeDaDude Help Archive 4 12/06/2009 08:18 PM


All times are GMT. The time now is 09:06 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.