Errors While Compiling
#1

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;
}
Reply
#2

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.
Reply
#3

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.
Reply
#4

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.
Reply
#5

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;
}
Reply
#6

Tnx Re[+
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)