08.10.2011, 18:06
hey having a few issues around admincars this is what i have admin:
but i get these errors for some reason:
pawn Код:
public OnGameModeInit()
{
new adminbike;
// Don't use these lines if it's a filterscript
SetGameModeText("Gangwar TDM!");
//admin vehicles
adminbike = AddStaticVehicleEx(522,2434.1450,-1675.1233,13.4768,181.4236,1,0,10000); // admin_nrg1
return 1;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(vehicleid == adminbike && !IsPlayerAdmin(playerid))
{
ClearAnimations(playerid);
SendClientMessage(playerid, 0xAA3333AA, "This vehicle is for admins only!");
}
return 1;
}
Код:
C:\Users\Unlimited DMers\Desktop\Fas FreeRoam\gamemodes\GWTDM.pwn(61) : warning 204: symbol is assigned a value that is never used: "adminbike" C:\Users\Unlimited DMers\Desktop\Fas FreeRoam\gamemodes\GWTDM.pwn(131) : error 017: undefined symbol "adminbike" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.