Errors While Compiling - 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 While Compiling (
/showthread.php?tid=398176)
Errors While Compiling -
Windrush - 08.12.2012
Fixed By BenzoAMG
Quote:
Originally Posted by BenzoAMG
Perhaps the fact they have a ; after public RAC() ??
Lol...
pawn Код:
public RAC() { SendClientMessageToAll(COLOR_WHITE,"{FF2200}[System] {00FF00}All Un Occupied Vehcile Were Respawned!!"); for(new v=0;v<MAX_VEHICLES;v++) if(!IsVehicleOccupied(v)) EraseVeh(v); return 1; }
|
Re: Errors While Compiling -
Lordzy - 08.12.2012
pawn Код:
forward RAC();
public RAC();
{
SendClientMessageToAll(COLOR_WHITE,"{FF2200}[System] {00FF00}All Un Occupied Vehcile Were Respawned!!");
for(new v=0;v<MAX_VEHICLES;v++) if(!IsVehicleOccupied(v)) EraseVeh(v);
return 1;
}
Here 'playerid' is undefined, so just use 'SendClientMessageToAll' function.
Re: Errors While Compiling -
Konstantinos - 08.12.2012
You're using RAC/rac as a timer name and as a command. Re-name the one to a different name and it won't give you any errors/warning.
EDIT: You edited your post.
Re: Errors While Compiling -
Windrush - 08.12.2012
Quote:
Originally Posted by Lordz™
pawn Код:
forward RAC(); public RAC(); { SendClientMessageToAll(COLOR_WHITE,"{FF2200}[System] {00FF00}All Un Occupied Vehcile Were Respawned!!"); for(new v=0;v<MAX_VEHICLES;v++) if(!IsVehicleOccupied(v)) EraseVeh(v); return 1; }
Here 'playerid' is undefined, so just use 'SendClientMessageToAll' function.
|
pawn Код:
public RAC();
{
SendClientMessageToAll(COLOR_WHITE,"{FF2200}[System] {00FF00}All Un Occupied Vehcile Were Respawned!!");
for(new v=0;v<MAX_VEHICLES;v++) if(!IsVehicleOccupied(v)) EraseVeh(v);
return 1;
}
pawn Код:
C:\Users\carlo\Desktop\SA-MP Server\RolePlay\gamemodes\SATDM_v11.pwn(30136) : error 055: start of function body without function header
C:\Users\carlo\Desktop\SA-MP Server\RolePlay\gamemodes\SATDM_v11.pwn(30138) : error 010: invalid function or declaration
C:\Users\carlo\Desktop\SA-MP Server\RolePlay\gamemodes\SATDM_v11.pwn(30139) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
Re: Errors While Compiling -
Threshold - 08.12.2012
Perhaps the fact they have a ; after public RAC() ??
Lol...
pawn Код:
public RAC()
{
SendClientMessageToAll(COLOR_WHITE,"{FF2200}[System] {00FF00}All Un Occupied Vehcile Were Respawned!!");
for(new v=0;v<MAX_VEHICLES;v++) if(!IsVehicleOccupied(v)) EraseVeh(v);
return 1;
}
Re: Errors While Compiling -
Windrush - 08.12.2012
Tnx Re[+