Compiling Error
#1

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.
Reply
#2

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[]);
}
Reply
#3

Код:
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 ?
Reply
#4

Help Me?Sorry For Double Post
Reply
#5

Get rid of strtok, why not sscanf?
Reply
#6

I don't know scripting much....please help me
Reply
#7

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

Код:
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[]);
}
Reply
#9

PLs Help Double Post Sorry!!
Reply
#10

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


Forum Jump:


Users browsing this thread: 2 Guest(s)