23.03.2012, 04:27
its probably easy but im tired its 4:30am here
pawn Код:
#include <a_samp>
#include <zcmd>
#define Message_color 0xFF0000FF
new bool:pLightStatus[MAX_PLAYERS];//global variable
new pLightObject[MAX_PLAYERS];//global variable
//vUndercover[vehicleid] = false;
//Call that when you destroy the undercover vehicle
COMMAND:cid(playerid, params[])
{
if(GetPlayerSkin(playerid) == 280 || GetPlayerSkin(playerid) == 281 || GetPlayerSkin(playerid) == 282 || GetPlayerSkin(playerid) == 283 || GetPlayerSkin(playerid) == 288 || GetPlayerSkin(playerid) == 284 || GetPlayerSkin(playerid) == 285)
{
else
{
SendClientMessage(playerid,Message_color,"you are not a bus or taxi driver");
new v = GetPlayerVehicleID(playerid);
if(!pLightStatus[playerid])
{
pLightObject[playerid] = CreateObject(18646, 0.0001, 0.0200, -16.0000, 0, 0, 0);
AttachObjectToVehicle(pLightObject[playerid], v, -0.34, -0.17, 0.64, -2.00, 0.00, 4.00);
pLightStatus[playerid] = true;
return 1;
}
else
{
DestroyObject(pLightObject[playerid]);
pLightStatus[playerid] = false;
return 1;
}
}
}
pawn Код:
D:\stuff from reinstall\The Original\filterscripts\police.pwn(14) : error 029: invalid expression, assumed zero
D:\stuff from reinstall\The Original\filterscripts\police.pwn(18) : warning 217: loose indentation
D:\stuff from reinstall\The Original\filterscripts\police.pwn(36) : error 030: compound statement not closed at the end of file (started at line 12)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.