Pawno - 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: Pawno (
/showthread.php?tid=498307)
Pawno -
DarkWolfff - 02.03.2014
Код:
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(65) : error 010: invalid function or declaration
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2689) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2691) : warning 209: function "IsAtLicenseplace" should return a value
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2704) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2706) : error 001: expected token: ";", but found "public"
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2706) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2706 -- 2707) : error 028: invalid subscript (not an array or too many subscripts): "playerid"
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2706 -- 2707) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
6 Errors.
Line 65:
Код:
//forward CooldownTowTimer();
forward CheckOnline();
forward AntiSpam(playerid); <- Line 65.
forward SetPlayerSpawn(playerid);
forward unmute(playerid);
Lines:
Код:
public IsAtLicenseplace(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, Float:362.4653, Float:173.7711, Float:1008.3828)) <- Line 2689.
return 1;
} <- Line 2691
public RACtime(playerid)
{
for(new player=0; player<MAX_PLAYERS; player++)
{
if(!IsVehicleOccupied(player)) SetVehicleToRespawn(player);
}
for(new car = 1; car < sizeof(CarInfo); car++)
{
if(!IsVehicleOccupied(car)) SetVehicleToRespawn(car);
}
return
} <- Line 2704
public AntiSpam(playerid) <- Line 2706
{ <- Line 2707
RecentlyShot[playerid] = 0;
return 1;
}
Re: Pawno -
jakejohnsonusa - 02.03.2014
In your "public RACtime(playerid)" you have "return" change it to this: