Help please!!!
#1

Код:
C:\Documents and Settings\Georg\Desktop\Sampservud\Basic RP Script Scratch FIX\gamemodes\s.pwn(5359) : error 025: function heading differs from prototype
C:\Documents and Settings\Georg\Desktop\Sampservud\Basic RP Script Scratch FIX\gamemodes\s.pwn(5360) : error 021: symbol already defined: "JBC_SetPlayerMoney"
C:\Documents and Settings\Georg\Desktop\Sampservud\Basic RP Script Scratch FIX\gamemodes\s.pwn(9418) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Georg\Desktop\Sampservud\Basic RP Script Scratch FIX\gamemodes\s.pwn(9418) : error 033: array must be indexed (variable "cmd")
C:\Documents and Settings\Georg\Desktop\Sampservud\Basic RP Script Scratch FIX\gamemodes\s.pwn(9461) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Georg\Desktop\Sampservud\Basic RP Script Scratch FIX\gamemodes\s.pwn(9461) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Georg\Desktop\Sampservud\Basic RP Script Scratch FIX\gamemodes\s.pwn(9683) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Georg\Desktop\Sampservud\Basic RP Script Scratch FIX\gamemodes\s.pwn(9683) : error 033: array must be indexed (variable "x_nr")
C:\Documents and Settings\Georg\Desktop\Sampservud\Basic RP Script Scratch FIX\gamemodes\s.pwn(9692) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Georg\Desktop\Sampservud\Basic RP Script Scratch FIX\gamemodes\s.pwn(9692) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Georg\Desktop\Sampservud\Basic RP Script Scratch FIX\gamemodes\s.pwn(9709) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Georg\Desktop\Sampservud\Basic RP Script Scratch FIX\gamemodes\s.pwn(9709) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Georg\Desktop\Sampservud\Basic RP Script Scratch FIX\gamemodes\s.pwn(9728) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Georg\Desktop\Sampservud\Basic RP Script Scratch FIX\gamemodes\s.pwn(9728) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Georg\Desktop\Sampservud\Basic RP Script Scratch FIX\gamemodes\s.pwn(9785) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Georg\Desktop\Sampservud\Basic RP Script Scratch FIX\gamemodes\s.pwn(9785) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Georg\Desktop\Sampservud\Basic RP Script Scratch FIX\gamemodes\s.pwn(9800) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Georg\Desktop\Sampservud\Basic RP Script Scratch FIX\gamemodes\s.pwn(9800) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Georg\Desktop\Sampservud\Basic RP Script Scratch FIX\gamemodes\s.pwn(9819) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Georg\Desktop\Sampservud\Basic RP Script Scratch FIX\gamemodes\s.pwn(9819) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Georg\Desktop\Sampservud\Basic RP Script Scratch FIX\gamemodes\s.pwn(9854) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Georg\Desktop\Sampservud\Basic RP Script Scratch FIX\gamemodes\s.pwn(9854) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Georg\Desktop\Sampservud\Basic RP Script Scratch FIX\gamemodes\s.pwn(9889) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Georg\Desktop\Sampservud\Basic RP Script Scratch FIX\gamemodes\s.pwn(9889) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Georg\Desktop\Sampservud\Basic RP Script Scratch FIX\gamemodes\s.pwn(9971) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Georg\Desktop\Sampservud\Basic RP Script Scratch FIX\gamemodes\s.pwn(9971) : error 033: array must be indexed (variable "tmp")

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
They are my errors how I can fix them`?
Reply
#2

u need to define the function somewhere in ur script
pawn Код:
strtok(const string[], &index)
{
    new length = strlen(string);
    while ((index < length) && (string[index] <= ' '))
    {
        index++;
    }
 
    new offset = index;
    new result[20];
    while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
    {
        result[index - offset] = string[index];
        index++;
    }
    result[index - offset] = EOS;
    return result;
}
Reply
#3

Thanks But there some warnings and 2 errors more
Код:
C:\Documents and Settings\Georg\Desktop\Sampservud\Basic RP Script Scratch FIX\gamemodes\s.pwn(5359) : error 025: function heading differs from prototype
C:\Documents and Settings\Georg\Desktop\Sampservud\Basic RP Script Scratch FIX\gamemodes\s.pwn(5360) : error 021: symbol already defined: "JBC_SetPlayerMoney"
C:\Documents and Settings\Georg\Desktop\Sampservud\Basic RP Script Scratch FIX\gamemodes\s.pwn(18342) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Georg\Desktop\Sampservud\Basic RP Script Scratch FIX\gamemodes\s.pwn(22483) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Georg\Desktop\Sampservud\Basic RP Script Scratch FIX\gamemodes\s.pwn(44814) : warning 203: symbol is never used: "LoopingAnim"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
Reply
#4

Delete LoopingAnim
And please show lines: 5359; 5360; 18342; 22483;
Reply
#5

5359-5363
stock SetPlayerMoney(playerid,howmuch)
{
GivePlayerMoney(playerid,howmuch-GetPlayerMoney(playerid));
return 1;
}

The two last are: FadePlayerScreen(playerid,COLOR_BLACK, 40);
Reply
#6

that didnґt work well because the cmd doesnt work
Reply
#7

pawn Код:
stock SetPlayerMoneyEx(playerid,howmuch)//that function already existed
{
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid,howmuch);
return 1;
}
show the parameters for the FadePlayerScreen
Reply
#8

That thing what you provided first didnt work well because cmd-s doesnt work
Reply
#9

show the CMD then !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)