Siren help here +rep -
N0FeaR - 07.01.2012
i have problem with my siren i make
here error i get
Код:
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(30248) : error 029: invalid expression, assumed zero
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(30260) : error 029: invalid expression, assumed zero
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(30260) : warning 215: expression has no effect
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(30260) : error 001: expected token: ";", but found "if"
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(30284) : warning 209: function "cmd_siren" should return a value
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(30285) : error 010: invalid function or declaration
cmd
Код:
}
CMD:siren(playerid, params[])
{
if(IsACop(playerid))
{
new string[128];
new sendername[MAX_PLAYERS];
new siren[65];
new VID = GetPlayerVehicleID(playerid);
if(!strval(params))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /siren [inside, roof, off]");
SendClientMessage(playerid, COLOR_GREY, "HINT: 'off' will remove the item from your vehicle.");
return 1;
}
strmid(siren, params, 0, strlen(params), 255);
if(strcmp(siren, "inside", true, strlen(siren)) == 0))
{
if(Siren[VID] == 0)
{
Siren[VID] = 1;
GetPlayerName(playerid, sendername, sizeof(sendername));
SirenObject[VID] = CreateObject(18646, 10.0, 10.0, 10.0, 0, 0, 0);
AttachObjectToVehicle(SirenObject[VID], VID, 0.0, 0.75, 0.275, 0.0, 0.1, 0.0);
format(string, sizeof(string), "* %s puts the siren on the dashboard.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
} else { return SendClientMessage(playerid, COLOR_GREY, "This vehicle already has a siren!"); }
}
else if(strcmp(siren, "roof", true, strlen(siren)) == 0)
{
if(Siren[VID] == 0)
{
Siren[VID] = 1;
GetPlayerName(playerid, sendername, sizeof(sendername));
SirenObject[VID] = CreateObject(18646, 10.0, 10.0, 10.0, 0, 0, 0);
AttachObjectToVehicle(SirenObject[VID], VID, -0.43, 0.0, 0.785, 0.0, 0.1, 0.0);
format(string, sizeof(string), "* %s puts the siren on the roof.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
} else { return SendClientMessage(playerid, COLOR_GREY, "This vehicle already has a siren!"); }
}
else if(strcmp(siren, "off", true, strlen(siren)) == 0)
{
if(Siren[VID] == 1)
{
Siren[VID] = 0;
GetPlayerName(playerid, sendername, sizeof(sendername));
DestroyObject(SirenObject[VID]);
format(string, sizeof(string), "* %s takes down the siren.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
} else { return SendClientMessage(playerid, COLOR_GREY, "This vehicle doesn't have siren!"); }
}
} else { SendClientMessage(playerid, COLOR_GREY, " You are not part of a Team!"); }
}
return 1;
}
Re: Siren help here +rep -
LiamM - 07.01.2012
pawn Код:
if(strcmp(siren, "inside", true, strlen(siren)) == 0))
I may be wrong but I think thats missing a bracket, may be wrong though...
or even has an extra bracket.
Re: Siren help here +rep -
Steven82 - 07.01.2012
Quote:
Originally Posted by LiamM
pawn Код:
if(strcmp(siren, "inside", true, strlen(siren)) == 0))
|
The end one is an extra ")".
pawn Код:
if(strcmp(siren, "inside", true, strlen(siren)) == 0)
Try that.
Re: Siren help here +rep -
N0FeaR - 07.01.2012
Ohh i miss that but thanks dude both get rep
Re: Siren help here +rep -
N0FeaR - 07.01.2012
i get this now mabye you guys how whats the problem are ?
Код:
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(30283) : warning 209: function "cmd_siren" should return a value
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(30284) : error 010: invalid function or declaration
Re: Siren help here +rep -
BlackWolf120 - 07.01.2012
whats your current code?
Re: Siren help here +rep -
N0FeaR - 07.01.2012
Quote:
Originally Posted by BlackWolf120
whats your current code?
|
there
Код:
}
CMD:siren(playerid, params[])
{
if(IsACop(playerid))
{
new string[128];
new sendername[MAX_PLAYERS];
new siren[65];
new VID = GetPlayerVehicleID(playerid);
if(!strval(params))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /siren [inside, roof, off]");
SendClientMessage(playerid, COLOR_GREY, "HINT: 'off' will remove the item from your vehicle.");
return 1;
}
strmid(siren, params, 0, strlen(params), 255);
if(strcmp(siren, "inside", true, strlen(siren)) == 0)
{
if(Siren[VID] == 0)
{
Siren[VID] = 1;
GetPlayerName(playerid, sendername, sizeof(sendername));
SirenObject[VID] = CreateObject(18646, 10.0, 10.0, 10.0, 0, 0, 0);
AttachObjectToVehicle(SirenObject[VID], VID, 0.0, 0.75, 0.275, 0.0, 0.1, 0.0);
format(string, sizeof(string), "* %s puts the siren on the dashboard.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
} else { return SendClientMessage(playerid, COLOR_GREY, "This vehicle already has a siren!"); }
}
else if(strcmp(siren, "roof", true, strlen(siren)) == 0)
{
if(Siren[VID] == 0)
{
Siren[VID] = 1;
GetPlayerName(playerid, sendername, sizeof(sendername));
SirenObject[VID] = CreateObject(18646, 10.0, 10.0, 10.0, 0, 0, 0);
AttachObjectToVehicle(SirenObject[VID], VID, -0.43, 0.0, 0.785, 0.0, 0.1, 0.0);
format(string, sizeof(string), "* %s puts the siren on the roof.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
} else { return SendClientMessage(playerid, COLOR_GREY, "This vehicle already has a siren!"); }
}
else if(strcmp(siren, "off", true, strlen(siren)) == 0)
{
if(Siren[VID] == 1)
{
Siren[VID] = 0;
GetPlayerName(playerid, sendername, sizeof(sendername));
DestroyObject(SirenObject[VID]);
format(string, sizeof(string), "* %s takes down the siren.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
} else { return SendClientMessage(playerid, COLOR_GREY, "This vehicle doesn't have siren!"); }
}
} else { SendClientMessage(playerid, COLOR_GREY, " You are not part of a Team!"); }
}
return 1;
}
Re: Siren help here +rep -
BlackWolf120 - 07.01.2012
pawn Код:
CMD:siren(playerid, params[])
{
if(!strval(params))return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /siren [inside, roof, off]"),SendClientMessage(playerid, COLOR_GREY, "HINT: 'off' will remove the item from your vehicle.");
if(IsACop(playerid))
{
new string[128];
new sendername[MAX_PLAYERS];
new siren[65];
new VID = GetPlayerVehicleID(playerid);
strmid(siren, params, 0, strlen(params), 255);
if(strcmp(siren, "inside", true, strlen(siren)) == 0 && Siren[VID] == 0)
{
Siren[VID] = 1;
GetPlayerName(playerid, sendername, sizeof(sendername));
SirenObject[VID] = CreateObject(18646, 10.0, 10.0, 10.0, 0, 0, 0);
AttachObjectToVehicle(SirenObject[VID], VID, 0.0, 0.75, 0.275, 0.0, 0.1, 0.0);
format(string, sizeof(string), "* %s puts the siren on the dashboard.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else return SendClientMessage(playerid, COLOR_GREY, "This vehicle already has a siren!"); }
else if(strcmp(siren, "roof", true, strlen(siren)) == 0 && Siren[VID] == 0)
{
Siren[VID] = 1;
GetPlayerName(playerid, sendername, sizeof(sendername));
SirenObject[VID] = CreateObject(18646, 10.0, 10.0, 10.0, 0, 0, 0);
AttachObjectToVehicle(SirenObject[VID], VID, -0.43, 0.0, 0.785, 0.0, 0.1, 0.0);
format(string, sizeof(string), "* %s puts the siren on the roof.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else return SendClientMessage(playerid, COLOR_GREY, "This vehicle already has a siren!"); }
else if(strcmp(siren, "off", true, strlen(siren)) == 0 && Siren[VID] == 1)
{
Siren[VID] = 0;
GetPlayerName(playerid, sendername, sizeof(sendername));
DestroyObject(SirenObject[VID]);
format(string, sizeof(string), "* %s takes down the siren.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else return SendClientMessage(playerid, COLOR_GREY, "This vehicle doesn't have siren!");
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You are not part of a Team!"); }
}
return 1;
}
Re: Siren help here +rep -
N0FeaR - 07.01.2012
When i use your code i get this :S
Код:
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3594) : warning 213: tag mismatch
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3594) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3594) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3594) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3594) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3594) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3594) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3601) : warning 213: tag mismatch
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3601) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3601) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3601) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3601) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3601) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3601) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3608) : warning 213: tag mismatch
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3608) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3608) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3608) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3608) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3608) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3608) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3617) : warning 213: tag mismatch
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3617) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3617) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3617) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3617) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3617) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3617) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3631) : warning 213: tag mismatch
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3631) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3631) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3631) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3631) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3631) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3631) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3638) : warning 213: tag mismatch
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3638) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3638) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3638) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3638) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3638) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3638) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3645) : warning 213: tag mismatch
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3645) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3645) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3645) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3645) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3645) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3645) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3652) : warning 213: tag mismatch
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3652) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3652) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3652) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3652) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3652) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3652) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3663) : warning 213: tag mismatch
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3663) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3663) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3663) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3663) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3663) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3663) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3670) : warning 213: tag mismatch
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3670) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3670) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3670) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3670) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3670) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3670) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3677) : warning 213: tag mismatch
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3677) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3677) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3677) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3677) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3677) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3677) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3691) : warning 213: tag mismatch
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3691) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3691) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3691) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3691) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3691) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3691) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3700) : warning 213: tag mismatch
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3700) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3700) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3700) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3700) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3700) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3700) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3712) : warning 213: tag mismatch
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3712) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3712) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3712) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3712) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3712) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3712) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3731) : warning 213: tag mismatch
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3731) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3731) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3731) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3731) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3731) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3731) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3745) : warning 213: tag mismatch
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3745) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3745) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3745) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3745) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3745) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3745) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3759) : warning 213: tag mismatch
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3759) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3759) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3759) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3759) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3759) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3759) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3772) : warning 213: tag mismatch
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3772) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3772) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3772) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3772) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3772) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(3772) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4099) : warning 213: tag mismatch
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4099) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4099) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4099) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4099) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4099) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4099) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4475) : warning 213: tag mismatch
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4475) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4475) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4475) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4475) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4475) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4475) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4545) : warning 213: tag mismatch
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4545) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4545) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4545) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4545) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4545) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4545) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4615) : warning 213: tag mismatch
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4615) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4615) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4615) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4615) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4615) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4615) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4686) : warning 213: tag mismatch
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4686) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4686) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4686) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4686) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4686) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4686) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4756) : warning 213: tag mismatch
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4756) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4756) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4756) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4756) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4756) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4756) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4758) : warning 213: tag mismatch
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4758) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4758) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4758) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4758) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4758) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(4758) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(10611) : warning 213: tag mismatch
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(10611) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(10611) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(10611) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(10611) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(10611) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(10611) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(10621) : warning 213: tag mismatch
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(10621) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(10621) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(10621) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(10621) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(10621) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(10621) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(10631) : warning 213: tag mismatch
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(10631) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(10631) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(10631) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(10631) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(10631) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(10631) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(11816) : warning 213: tag mismatch
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(11816) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(11816) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(11816) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(11816) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(11816) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(11816) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(13469) : warning 213: tag mismatch
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(13469) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(13469) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(13469) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(13469) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(13469) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(13469) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(14457) : warning 213: tag mismatch
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(14457) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(14457) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(14457) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(14457) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(14457) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(14457) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(14889) : warning 213: tag mismatch
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(14889) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(14889) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(14889) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(14889) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(14889) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(14889) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(16209) : warning 213: tag mismatch
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(16209) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(16209) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(16209) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(16209) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(16209) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(16209) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(29823) : warning 213: tag mismatch
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(29823) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(29823) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(29823) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(29823) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(29823) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(29823) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(29836) : warning 213: tag mismatch
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(29836) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(29836) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(29836) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(29836) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(29836) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(29836) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(29887) : warning 213: tag mismatch
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(29887) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(29887) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(29887) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(29887) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(29887) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(29887) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(29902) : warning 213: tag mismatch
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(29902) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(29902) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(29902) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(29902) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(29902) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(29902) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(29917) : warning 213: tag mismatch
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(29917) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(29917) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(29917) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(29917) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(29917) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(29917) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(30078) : warning 213: tag mismatch
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(30078) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(30078) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(30078) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(30078) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(30078) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(30078) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(30112) : warning 213: tag mismatch
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(30112) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(30112) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(30112) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(30112) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(30112) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(30112) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(30222) : warning 213: tag mismatch
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(30222) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(30222) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(30222) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(30222) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(30222) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(30222) : warning 202: number of arguments does not match definition
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(30225) : error 017: undefined symbol "siren"
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(30227) : error 017: undefined symbol "VID"
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(30228) : error 017: undefined symbol "sendername"
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(30228) : error 017: undefined symbol "sendername"
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(30228) : error 029: invalid expression, assumed zero
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(30228) : fatal error 107: too many error messages on one line
Re: Siren help here +rep -
BlackWolf120 - 07.01.2012
to be able to test it on my computer i had to convert this to dcmd but its easy to convert it back
Also i dont know what ur ProxyDetector function is doing so i just commented it.
No errors/warnings for me.
pawn Код:
dcmd_siren(playerid,params[])
{
new siren[65],string[128],sendername[MAX_PLAYERS],SirenObject[MAX_PLAYERS],VID = GetPlayerVehicleID(playerid);
strmid(siren, params, 0, strlen(params), 255);
if(!strval(params))return SendClientMessage(playerid, -1, "USAGE: /siren [inside, roof, off]"),SendClientMessage(playerid, -1, "HINT: 'off' will remove the item from your vehicle.");
if(IsACop[playerid]==0)
{
if(strcmp(siren, "inside", true, strlen(siren)))
{
if(Siren[VID] == 1)return SendClientMessage(playerid, -1, "This vehicle already has a siren!");
Siren[playerid] = 1;
GetPlayerName(playerid, sendername, sizeof(sendername));
SirenObject[VID] = CreateObject(18646, 10.0, 10.0, 10.0, 0, 0, 0);
AttachObjectToVehicle(SirenObject[VID], VID, 0.0, 0.75, 0.275, 0.0, 0.1, 0.0);
format(string, sizeof(string), "* %s puts the siren on the dashboard.", sendername);
//ProxDetector(30.0, playerid, string, -1,-1,-1,-1,-1);
}
else if(strcmp(siren, "roof", true, strlen(siren) == 0))
{
if(Siren[VID] == 1)return SendClientMessage(playerid, -1, "This vehicle already has a siren!");
Siren[playerid] = 1;
GetPlayerName(playerid, sendername, sizeof(sendername));
SirenObject[VID] = CreateObject(18646, 10.0, 10.0, 10.0, 0, 0, 0);
AttachObjectToVehicle(SirenObject[VID], VID, -0.43, 0.0, 0.785, 0.0, 0.1, 0.0);
format(string, sizeof(string), "* %s puts the siren on the roof.", sendername);
//ProxDetector(30.0, playerid, string, -1,-1,-1,-1,-1);
}
else if(strcmp(siren, "off", true, strlen(siren)) == 0 && Siren[VID] == 1)
{
if(Siren[VID] == 0)return SendClientMessage(playerid, -1, "This vehicle doesnt have a siren!");
Siren[playerid] = 0;
GetPlayerName(playerid, sendername, sizeof(sendername));
DestroyObject(SirenObject[VID]);
format(string, sizeof(string), "* %s takes down the siren.", sendername);
//ProxDetector(30.0, playerid, string, -1,-1,-1,-1,-1);
}
}
else
{
SendClientMessage(playerid, -1, "You are not part of a Team!");
}
return 1;
}