How to add siren
#9

Pawn is case sensitive.

I think this will solve ur problem.
PHP код:
if(sscanf(params"iiii"iVehicleiColors[0], iColors[1], iaddsiren)) 
also try this:
PHP код:
CMD:dvcreate(playeridparams[])
{
    if(
PlayerInfo[playerid][pAdmin] >= 1337)
    {
        new 
vehicleid
            iVehicle
,
            
iColors[2],
            
iaddsiren,
            
string[128]
        ;
        if(
sscanf(params"iiii"iVehicleiColors[0], iColors[1], iaddsiren)) 
            return 
SendClientMessageEx(playeridCOLOR_GREY"SU DUNG: /dvcreate [model ID] [color 1] [color 2] [Siren type]");
        if(!(
400 iVehicle 612))
            return 
SendClientMessage(playeridCOLOR_GRAD2"Invalid Model ID");
        else if(
IsATrain(iVehicle)) 
            return 
SendClientMessageEx(playeridCOLOR_GREY"Trains cannot be spawned during runtime.");
        else if(!(
<= iColors[0] <= 255 && <= iColors[1] <= 255))
            return 
SendClientMessageEx(playeridCOLOR_GRAD2"Invalid color specified (IDs start at 0, and end at 255).");
        
mysql_function_query(MainPipeline"SELECT id from `groupvehs` WHERE vModel = 0 LIMIT 1;"true"DynVeh_CreateDVQuery""iiiI"playeridiVehicleiColors[0], iColors[1], iaddsiren);
        
format(stringsizeof(string), "%s has created a dynamic vehicle."GetPlayerNameEx(playerid));
        
Log("logs/dv.log"string);
    }
    else return 
SendClientMessage(playeridCOLOR_GRAD2"Ban khong the su dung lenh nay.");
    return 
1;

Reply


Messages In This Thread
How to add siren - by linhpro200294 - 02.07.2018, 09:06
Re: How to add siren - by FaLLenGirL - 02.07.2018, 09:44
Re: How to add siren - by linhpro200294 - 02.07.2018, 09:49
Re: How to add siren - by jasperschellekens - 02.07.2018, 10:15
Re: How to add siren - by linhpro200294 - 02.07.2018, 13:08
Re: How to add siren - by Sew_Sumi - 02.07.2018, 15:02
Re: How to add siren - by linhpro200294 - 02.07.2018, 16:52
Re: How to add siren - by linhpro200294 - 04.07.2018, 14:29
Re: How to add siren - by Vithinn - 04.07.2018, 15:29
Re: How to add siren - by linhpro200294 - 05.07.2018, 11:03

Forum Jump:


Users browsing this thread: 1 Guest(s)