11.06.2012, 15:26
Hey,
I tried to make it only if someone is in a vehicle.
and now it give these errors.
Also see this topic http://forum.sa-mp.com/showthread.ph...72#post1917672
I tried to make it only if someone is in a vehicle.
pawn Код:
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;
}
pawn Код:
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.