Help please!!! - 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: Help please!!! (
/showthread.php?tid=402178)
Help please!!! -
Rgaming - 25.12.2012
Код:
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`?
Re: Help please!!! -
park4bmx - 25.12.2012
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;
}
Re: Help please!!! -
Rgaming - 25.12.2012
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
Re: Help please!!! -
Typhome - 25.12.2012
Delete LoopingAnim
And please show lines: 5359; 5360; 18342; 22483;
Re: Help please!!! -
Rgaming - 25.12.2012
5359-5363
stock SetPlayerMoney(playerid,howmuch)
{
GivePlayerMoney(playerid,howmuch-GetPlayerMoney(playerid));
return 1;
}
The two last are: FadePlayerScreen(playerid,COLOR_BLACK, 40);
Re: Help please!!! -
Rgaming - 25.12.2012
that didnґt work well because the cmd doesnt work
Re: Help please!!! -
park4bmx - 25.12.2012
pawn Код:
stock SetPlayerMoneyEx(playerid,howmuch)//that function already existed
{
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid,howmuch);
return 1;
}
show the parameters for the
FadePlayerScreen
Re: Help please!!! -
Rgaming - 25.12.2012
That thing what you provided first didnt work well because cmd-s doesnt work
Re: Help please!!! -
park4bmx - 25.12.2012
show the CMD then !