18.04.2017, 04:06
Sу um exemplo
Percebi que vocк compara as strings de dono do veнculo com uma string "tmpx", mas vocк nгo atribuiu nenhuma valor a ela...
Код:
...
printf("vehid: %d", vehicleid"); //mostrando o vehicleid
if(newstate == PLAYER_STATE_DRIVER)
{
for(new V = 0; V < TOTALSETS; V ++)
{
if(vehicleid == VeiculoSET[V])
{
tmp = dini_Get(VeiculosFile(V), "Dono");
printf("VeiculoSET[%d]: %d | dono: %s", V, VeiculoSET[V], tmp); //mostrar os dados do veiculo
new APr = dini_Int(VeiculosFile(V), "Apreendido");
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(VeiculoSET[V], engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(VeiculoSET[V], engine, lights, alarm, doors, bonnet, boot, 0);
if(APr != -1)
{
format(string, sizeof(string), "[ERRO] Esse SET '%s' estб apreendido e nгo pode ser usado!", dini_Get(VeiculosFile(V), "NomeVeiculo"));
SendClientMessage(playerid, CORX1, string);
RemovePlayerFromVehicleEx(playerid);
SetVehicleToRespawn(VeiculoSET[V]);
return 1;
}
if(strcmp(tmpx, tmp, true) == 0)
{
format(string, sizeof(string), "[INFO] Bem vindo(a) ao seu veнculo prуprio '%s', %s", dini_Get(VeiculosFile(V), "NomeVeiculo"));
SendClientMessage(playerid, COR_ORKUT, string);
}
...

