[Ajuda] criar carro samp
#9

ta dano erro
..................
fico assim
Quote:

if(strcmp("/cv", cmdtext, true) == 0)
{
new shick[128];
new VeiculosCriados[101];
new VeiculoCriado = 0;
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xF60000AA, "Vocк nгo й Administrador RCON!");
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, 0xF60000AA, "[-]: /veh [ID] [Cor 1] [Cor 2]");
new veiculo;
veiculo = strval(tmp);
if(veiculo < 400 || veiculo > 600) return SendClientMessage(playerid, 0xF60000AA, "[ERRO] O modelo do veнculo tem de estar entre 411 e 611!");
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, 0xF60000AA, "[-]: /veh [ID] [Cor 1] [Cor 2]");
new Cor1;
Cor1 = strval(tmp);
if(Cor1 < 1 || Cor1 > 300) return SendClientMessage(playerid, 0xF60000AA, "[ERRO] A Cor tem de estar entre 1 e 300!");
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, 0xF60000AA, "[-]: /veh [ID] [Cor 1] [Cor 2]");
new Cor2;
Cor2 = strval(tmp);
if(Cor2 < 1 || Cor2 > 300) return SendClientMessage(playerid, 0xF60000AA, "[ERRO] A Cor tem de estar entre 1 e 300!");
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
new veiculo1 = CreateVehicle(car, X,Y,Z, 0.0, Cor1, Cor2, 120000);
VeiculosCriados[VeiculoCriado] = veiculo1; VeiculoCriado++;
format(shick, sizeof(shick), "[ATENЗГO] Veнculo ID: %d Adicionado", veiculo1);
SendClientMessage(playerid, 0x00AB00AA, shick);
return 1;
}

e deu os seguintes erros
Quote:

C:\Documents and Settings\William_2\Meus documentos\Downloads\Iniciante\gamemodes\Iniciante .pwn(385) : error 017: undefined symbol "tmp"
C:\Documents and Settings\William_2\Meus documentos\Downloads\Iniciante\gamemodes\Iniciante .pwn(385) : error 017: undefined symbol "strtok"
C:\Documents and Settings\William_2\Meus documentos\Downloads\Iniciante\gamemodes\Iniciante .pwn(386) : error 017: undefined symbol "tmp"
C:\Documents and Settings\William_2\Meus documentos\Downloads\Iniciante\gamemodes\Iniciante .pwn(38 : error 017: undefined symbol "tmp"
C:\Documents and Settings\William_2\Meus documentos\Downloads\Iniciante\gamemodes\Iniciante .pwn(390) : error 017: undefined symbol "tmp"
C:\Documents and Settings\William_2\Meus documentos\Downloads\Iniciante\gamemodes\Iniciante .pwn(390) : error 017: undefined symbol "strtok"
C:\Documents and Settings\William_2\Meus documentos\Downloads\Iniciante\gamemodes\Iniciante .pwn(391) : error 017: undefined symbol "tmp"
C:\Documents and Settings\William_2\Meus documentos\Downloads\Iniciante\gamemodes\Iniciante .pwn(393) : error 017: undefined symbol "tmp"
C:\Documents and Settings\William_2\Meus documentos\Downloads\Iniciante\gamemodes\Iniciante .pwn(395) : error 017: undefined symbol "tmp"
C:\Documents and Settings\William_2\Meus documentos\Downloads\Iniciante\gamemodes\Iniciante .pwn(395) : error 017: undefined symbol "strtok"
C:\Documents and Settings\William_2\Meus documentos\Downloads\Iniciante\gamemodes\Iniciante .pwn(396) : error 017: undefined symbol "tmp"
C:\Documents and Settings\William_2\Meus documentos\Downloads\Iniciante\gamemodes\Iniciante .pwn(39 : error 017: undefined symbol "tmp"
C:\Documents and Settings\William_2\Meus documentos\Downloads\Iniciante\gamemodes\Iniciante .pwn(402) : error 017: undefined symbol "car"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


13 Errors.

Reply


Messages In This Thread
[Ajuda] criar carro samp - by williamgato - 01.05.2011, 18:29
Re: criar carro samp - by ApolloRJ - 01.05.2011, 18:34
Re: criar carro samp - by Macintosh - 01.05.2011, 18:56
Re: criar carro samp - by Josma_cmd - 01.05.2011, 19:33
Re: criar carro samp - by ApolloRJ - 01.05.2011, 23:54
Re: [Ajuda] criar carro samp - by Shadoww5 - 02.05.2011, 01:21
Re: [Ajuda] criar carro samp - by Macintosh - 02.05.2011, 01:49
Re: [Ajuda] criar carro samp - by Ricop522 - 02.05.2011, 02:05
Re: [Ajuda] criar carro samp - by williamgato - 02.05.2011, 05:31
Re: criar carro samp - by TheGarfield - 02.05.2011, 06:30

Forum Jump:


Users browsing this thread: 1 Guest(s)