[Pedido] Comando /CV Veiculos
#6

@EDIT
Quote:
Originally Posted by Standby
Посмотреть сообщение
kodskpaopdas isso e verdade

pawn Код:
if(strcmp(cmd, "/cv", true) == 0) {
new tmp[256];
new plid;
new cor1,cor2;
new veiculo;
new Float:X,Float:Y,Float:Z,Float:Angle;
tmp = strtok(cmdtext, idx);
cor1 = strval(tmp);
if(!strlen(tmp)) {
SendClientMessage(playerid, Vermelho, "| ERRO | Digite: /cv [id]");
return 1;
}
if(IsPlayerConnected(playerid)){
if(plid >= 400 && plid <= 611){
GetPlayerPos(playerid,X,Y,Z);
GetPlayerFacingAngle(playerid,Angle);
new carro = CreateVehicle(plid, X, Y, Z, Angle, -1, -1, 120000);
PutPlayerInVehicle(playerid,carro,0);
if(GetPlayerInterior(playerid))
veiculo = GetPlayerVehicleID(playerid);
LinkVehicleToInterior(carro,GetPlayerInterior(playerid));
SetVehicleVirtualWorld(carro,GetPlayerVirtualWorld(playerid));
ChangeVehicleColor(veiculo,cor1,cor2);
format(string, sizeof(string), "| Carro-Car | Vocк criou o veнculo de 'ID %d , Cor1 %d , Cor2 %d.", plid,cor1,cor2);
SendClientMessage(playerid, outraadm, string);
return 1;
}else{
SendClientMessage(playerid, Vermelho, "| ERRO | ID invбlido || ID's = 400-611");
return 1;
}
}
}
erro:
Код:
Server\gamemodes\gmofficial.pwn(568) : error 017: undefined symbol "cmd"
Server\gamemodes\gmofficial.pwn(574) : error 017: undefined symbol "strtok"
Server\gamemodes\gmofficial.pwn(574) : error 033: array must be indexed (variable "tmp")
Server\gamemodes\gmofficial.pwn(591) : error 017: undefined symbol "string"
Server\gamemodes\gmofficial.pwn(591) : error 017: undefined symbol "string"
Server\gamemodes\gmofficial.pwn(591) : error 029: invalid expression, assumed zero
Server\gamemodes\gmofficial.pwn(591) : fatal error 107: too many error messages on one line
Reply


Messages In This Thread
Comando /CV Veiculos - by LucaAllexandre - 27.07.2013, 20:11
Re: Comando /CV Veiculos - by Mteck - 27.07.2013, 20:15
Re: Comando /CV Veiculos - by XxFaTaLxX - 27.07.2013, 20:16
Re: Comando /CV Veiculos - by LucaAllexandre - 27.07.2013, 20:16
Re: Comando /CV Veiculos - by Standby - 27.07.2013, 20:21
Re: Comando /CV Veiculos - by LucaAllexandre - 27.07.2013, 20:22
Re: Comando /CV Veiculos - by XxFaTaLxX - 27.07.2013, 20:33
Re: Comando /CV Veiculos - by Coe1 - 27.07.2013, 20:34
Re: Comando /CV Veiculos - by LucaAllexandre - 27.07.2013, 20:35
Re: Comando /CV Veiculos - by godkrad - 27.07.2013, 20:41

Forum Jump:


Users browsing this thread: 2 Guest(s)