22.02.2011, 15:26
como que faz pra criar o comando de adicionar e remover o missel ?
if(strcmp(cmd, "/Misil", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
new vehicleid = strval(tmp);
tmp = strtok(cmdtext, idx);
new OffX = strval(tmp);
tmp = strtok(cmdtext, idx);
new Offz = strval(tmp);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "[USA]: /Misil [AutoId] [offsetx] [offsetz]");
return 1;
}
RemoveVehicleMissiles(vehicleid);
AddVehicleMissiles(vehicleid,OffX,Offz);
SendClientMessage(playerid, COLOR_WHITE, "Misiles agregados correctamente");
}
return 1;
}
C:\Users\Korisnik\Desktop\My DropBox\Dropbox\serverfiles\Sfcnr\gamemodes\SFCRRPG_FIX.pwn(3656) : warning 202: number of arguments does not match definition C:\Users\Korisnik\Desktop\My DropBox\Dropbox\serverfiles\Sfcnr\gamemodes\SFCRRPG_FIX.pwn(3656) : warning 202: number of arguments does not match definition
if(IsValidObject(VehicleBomb[vehicleid][1]))
if(VehicleBomb[IsValidObject(vehicleid][1]))
AddVehicleMissiles(vehicleid,Float:offsetx,Float:offsetz)
AddVehicleMissiles(Vehicle,1.1,0.0,-0.2);