SA-MP Forums Archive
Compiling Error - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Compiling Error (/showthread.php?tid=536070)



Compiling Error - LazyB0y - 07.09.2014

I got a compiling error...
Код:
C:\Users\<>\Downloads\SFCRRPGv1.1\SFCRRPG\gamemodes\SFCRRPG.pwn(50) : error 017: undefined symbol "strtok"
C:\Users\<>\Downloads\SFCRRPGv1.1\SFCRRPG\gamemodes\SFCRRPG.pwn(13046) : error 017: undefined symbol "udb_RenameUser"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.



Re: Compiling Error - Eth - 07.09.2014

add this at any place of ur script
pawn Код:
stock strtok(const string[], &index,seperator=' ')
{
        new length = strlen(string);
        new offset = index;
        new result[128];
        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;
}
at the top of ur script
pawn Код:
#include <dudb>
and/or
pawn Код:
stock Udb_RenameUser(playerid,name[])
{
     SetPlayerName(playerid,name[]);
}



Re: Compiling Error - LazyB0y - 07.09.2014

Код:
C:\Users\<>\Downloads\SFCRRPGv1.1\SFCRRPG\gamemodes\SFCRRPG.pwn(2393) : error 017: undefined symbol "PlayerName"
C:\Users\<>\Downloads\SFCRRPGv1.1\SFCRRPG\gamemodes\SFCRRPG.pwn(2394) : error 017: undefined symbol "PlayerName"
C:\Users\<>\Downloads\SFCRRPGv1.1\SFCRRPG\gamemodes\SFCRRPG.pwn(2395) : error 017: undefined symbol "PlayerName"
C:\Users\<>\Downloads\SFCRRPGv1.1\SFCRRPG\gamemodes\SFCRRPG.pwn(2396) : error 017: undefined symbol "PlayerName"
C:\Users\<>\Downloads\SFCRRPGv1.1\SFCRRPG\gamemodes\SFCRRPG.pwn(2397) : error 017: undefined symbol "PlayerName"
C:\Users\<>\Downloads\SFCRRPGv1.1\SFCRRPG\gamemodes\SFCRRPG.pwn(2398) : error 017: undefined symbol "PlayerName"
C:\Users\<>\Downloads\SFCRRPGv1.1\SFCRRPG\gamemodes\SFCRRPG.pwn(2402) : error 004: function "ResetVariables" is not implemented
C:\Users\<>\Downloads\SFCRRPGv1.1\SFCRRPG\gamemodes\SFCRRPG.pwn(2411) : error 004: function "RemoveRoadblock" is not implemented
C:\Users\<>\Downloads\SFCRRPGv1.1\SFCRRPG\gamemodes\SFCRRPG.pwn(2434) : error 017: undefined symbol "PlayerName"
C:\Users\<>\Downloads\SFCRRPGv1.1\SFCRRPG\gamemodes\SFCRRPG.pwn(2464) : error 017: undefined symbol "PlayerObjectUpdate"
C:\Users\<>\Downloads\SFCRRPGv1.1\SFCRRPG\gamemodes\SFCRRPG.pwn(2608) : error 017: undefined symbol "StopLoopingAnim"
C:\Users\<>\Downloads\SFCRRPGv1.1\SFCRRPG\gamemodes\SFCRRPG.pwn(2614) : error 017: undefined symbol "PlayerName"

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


26 Errors.
Back Now Please ?


Re: Compiling Error - LazyB0y - 07.09.2014

Help Me?Sorry For Double Post


Re: Compiling Error - iFarbod - 07.09.2014

Get rid of strtok, why not sscanf?


Re: Compiling Error - LazyB0y - 07.09.2014

I don't know scripting much....please help me


Re: Compiling Error - BroZeus - 07.09.2014

Well i recommend you learn scripting basics first then do editing of other scripts...


Re: Compiling Error - LazyB0y - 07.09.2014

Код:
F:\<>\port_5101\pawno\include\dutils.inc(22) : error 017: undefined symbol "MAX_PLAYERS"
F:\<>\port_5101\pawno\include\dutils.inc(221) : error 017: undefined symbol "fexist"
F:\<>\port_5101\pawno\include\dutils.inc(221) : warning 215: expression has no effect
F:\<>\port_5101\pawno\include\dutils.inc(221) : error 001: expected token: ";", but found ")"
F:\<>\port_5101\pawno\include\dutils.inc(221) : error 029: invalid expression, assumed zero
F:\<>\port_5101\pawno\include\dutils.inc(221) : fatal error 107: too many error messages on one line

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


5 Errors.
These Error's Came If I Didn't add the
Quote:
Originally Posted by Eth
Посмотреть сообщение
pawn Код:
stock Udb_RenameUser(playerid,name[])
{
     SetPlayerName(playerid,name[]);
}



Re: Compiling Error - LazyB0y - 08.09.2014

PLs Help Double Post Sorry!!


Re: Compiling Error - IceBilizard - 08.09.2014

At top of script
pawn Код:
#include <a_samp>