command(sb, playerid, params[])
{
new string[128];
if(Player[playerid][Seatbelt] == 0)
if(IsPlayerInAnyVehicle(playerid))
{
format(string, sizeof(string), "* %s has buckled up his seatbelt.", GetName(playerid));
NearByMessage(playerid, NICESKY, string);
Player[playerid][Seatbelt] = 1;
}
}
else
}
if(Player[playerid][Seatbelt] == 1)
if(IsPlayerInAnyVehicle(playerid))
{
format(string, sizeof(string), "* %s has unbuckle his seatbelt.", GetName(playerid));
NearByMessage(playerid, NICESKY, string);
Player[playerid][Seatbelt] = 0;
}
return 1;
}
C:\Users\Stefan Dorst\Desktop\Volcom Rp\gamemodes\SRP.pwn(15245) : error 010: invalid function or declaration
C:\Users\Stefan Dorst\Desktop\Volcom Rp\gamemodes\SRP.pwn(15247) : error 010: invalid function or declaration
C:\Users\Stefan Dorst\Desktop\Volcom Rp\gamemodes\SRP.pwn(15248) : error 010: invalid function or declaration
C:\Users\Stefan Dorst\Desktop\Volcom Rp\gamemodes\SRP.pwn(15251) : error 021: symbol already defined: "NearByMessage"
C:\Users\Stefan Dorst\Desktop\Volcom Rp\gamemodes\SRP.pwn(15254) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
|
Why on Earth, would you post a second topic...
Please, please, please use the EDIT button. |
|
Dorst\Desktop\Volcom Rp\gamemodes\SRP.pwn(15254) : error 010: invalid function or declaration |
command(sb, playerid, params[])
{
new string[128];
if(Player[playerid][Seatbelt] == 0)
{
if(IsPlayerInAnyVehicle(playerid))
{
format(string, sizeof(string), "* %s has buckled up his seatbelt.", GetName(playerid));
NearByMessage(playerid, NICESKY, string);
Player[playerid][Seatbelt] = 1;
}
}
else if(Player[playerid][Seatbelt] == 1)
{
if(IsPlayerInAnyVehicle(playerid))
{
format(string, sizeof(string), "* %s has unbuckle his seatbelt.", GetName(playerid));
NearByMessage(playerid, NICESKY, string);
Player[playerid][Seatbelt] = 0;
}
}
return 1;
}
format(string, sizeof(string), "* %s has unbuckled his seatbelt.", GetName(playerid));