Bonjours :D ,
Voila j'ai fait (Enfin que j'ai recuillit dans un FS ) une commande pour faire apparaitre un véhicule avec un certain ID et une certaine couleur mais quand je fait apparaitre le véhicule il rentre en passager ??? ??? ??? :bangin
Voila le code :
new cmd[256];
new idx;
new voiture;
cmd = strtok(cmdtext, idx);
if(!strcmp(cmd, "/vehicle", true) || !strcmp(cmd, "/v", true))
{
new Float:X, Float:Y, Float:Z;
if(GetPlayerPos(playerid,X,Y,Z))
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_RED, "You are not an admin!");
new vehicletype, color1, color2, tmp[256], tmp2[256], tmp3[256];
tmp = strtok(cmdtext, idx), tmp2 = strtok(cmdtext, idx), tmp3 = strtok(cmdtext, idx);
if(!strlen(tmp) || !strlen(tmp2) || !strlen(tmp3)) return SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /(v)ehicle [vehicleid] [color1] [color2]");
vehicletype = strval(tmp) , color1 = strval(tmp2) , color2 = strval(tmp3);
voiture = CreateVehicle(vehicletype, X, Y, Z, 0.0, color1, color2, 999999999999999999999999999999999999);
PutPlayerInVehicle(playerid,voiture,1);
return 1;
}
Merci de m'aider ::) :wall :wall :wall