Errors. - 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: Errors. (
/showthread.php?tid=349480)
Errors. - Jarnu - 09.06.2012
Код:
E:\server0\gamemodes\Trucking.pwn(1586) : error 010: invalid function or declaration
E:\server0\gamemodes\Trucking.pwn(1590) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
Lines.
pawn Код:
if(strcmp(cmdtext,"/st",true) == 0)
{
SetPlayerHealth(playerid, 0);
ForceClassSelection(playerid);
return 1;
}
Re: Errors. -
Rudy_ - 09.06.2012
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/st", cmdtext, true, 2) == 0)
{
SetPlayerHealth(playerid, 0);
ForceClassSelection(playerid);
return 1;
}
return 0;
}
Re: Errors. - Jarnu - 09.06.2012
with your lines.
Код:
E:\server0\gamemodes\Trucking.pwn(1586) : error 010: invalid function or declaration
E:\server0\gamemodes\Trucking.pwn(1590) : error 010: invalid function or declaration
E:\server0\gamemodes\Trucking.pwn(1592) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Errors.
Re: Errors. -
Rudy_ - 09.06.2012
it don't give me any error
Код:
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Header size: 4076 bytes
Code size: 114832 bytes
Data size: 52600 bytes
Stack/heap size: 16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements: 187892 bytes
Re: Errors. - Jarnu - 09.06.2012
EDIT: Fixed.. Thanks Rudy_