Sera un bucle mald1to?
#1

Saludos a todos, he estado retomando pawno y al querer crear un trackcar por medio de matricula, ahora esta funcionando, el problema es que no muestra el nombre del propietario, que ya he colocado dentro del bucle for, pero no lo muestra en el resultado, gracias de antemano!

Aqui el codido:

Код:
   if(dialogid == DIALOG_ENCONTRAR_VEHICULO)
	{
        if(response)
        {
	        if(strlen(inputtext) > 0)
			{
			    new propietario[MAX_PLAYER_NAME], bool:ok=false, string[160], Float:ePos[3];
				for(new v = 0; v < sizeof(cInfo); v++)
	  		    {
	  		        if(!strlen(cInfo[v][matricula]))
	  		            continue;
	  		    
    				if(!strcmp(cInfo[v][matricula], inputtext, false)) 
					{
					    GetVehiclePos(cInfo[v][id_x], ePos[0], ePos[1], ePos[2]);
					    GetPlayerName(cInfo[v][ownerID], propietario, MAX_PLAYER_NAME);
					    ok = true;
					    break;
					}
					else
					{
					    ok = false;
					}
				}
				
				if(ok == false)
				{
					return Message(playerid, -1, "No se encontraron resultados.");
				}
				else
				{
					format(string, sizeof(string), "Panel de Localizacion: Vehiculo encontrado | Propietario: %s | Matricula: %s", propietario, inputtext);
					Message(playerid, -1, string);
					Message(playerid, COLOR_YELLOW, "Hemos enviado las coordenadas, dirigase al punto indicado.");
					printf("Encontrado - Pos: %f,%f,%f",ePos[0], ePos[1], ePos[2]);
				}
		  	}
			else
			{
			    return 0;
			}
		}
		else
		{
		    Message(playerid, -1, "Panel de localizacion cerrado.");
		}
		printf("$$$$$ --> Final Dialog ");
	}
	return 0;
Reply


Messages In This Thread
(Resuelto) Bucle Bendito - by N3cromancer - 28.02.2015, 09:35
Respuesta: Sera un bucle mald1to? - by alexus - 28.02.2015, 11:39
Re: Sera un bucle mald1to? - by N3cromancer - 28.02.2015, 11:50
Re: Sera un bucle mald1to? - by N3cromancer - 28.02.2015, 12:23
Respuesta: Sera un bucle mald1to? - by alexus - 28.02.2015, 17:15
Re: Sera un bucle mald1to? - by N3cromancer - 28.02.2015, 20:21

Forum Jump:


Users browsing this thread: 1 Guest(s)