View Single Post
Old 07/11/2019, 07:45 PM   #16
ImTobi
Big Clucker
 
ImTobi's Avatar
 
Join Date: Jun 2017
Posts: 144
Reputation: 3
Default Re: /wantedcars list Command is bugging

Code:
				case 2:
				{
					if(!eingeloggt[playerid])return NOT_LOGGEDIN(playerid);
					if(!IsPlayerInFraktion(playerid,1) && !IsPlayerInFraktion(playerid,4))return SendClientMessage(playerid, COLOR_RED, "Du bist kein Mitglied vom SFPD oder LSPD.");
					if(pInfo[playerid][duty] != 1)return SendClientMessage(playerid, COLOR_RED, "Du bist nicht im Dienst.");
					new string[4096];
					for(new i=0; i<sizeof(wInfo); i++)
					{
						if (strlen(wInfo[i][CarModel]))
						{
							format(string,sizeof(string),"ID\tBeschreibung\tKennzeichen\tGrund\n");
						 	format(string,sizeof(string),"%s%i\t%s\t%s\t%s\n",string,wInfo[i][db_id],wInfo[i][CarModel],wInfo[i][WantedKennzeichen],wInfo[i][WantedGrund]);   
						 	ShowPlayerDialog(playerid, WANTEDCARSDIALOG, DIALOG_STYLE_TABLIST_HEADERS,"Gesuchte Fahrzeuge - SFPD | LSPD", string, "Okay", "");
						}
					}
					//ShowPlayerDialog(playerid, WANTEDCARSDIALOG, DIALOG_STYLE_TABLIST_HEADERS,"Gesuchte Fahrzeuge - SFPD | LSPD", string, "Okay", "");
				}

Now the Dialog only Shows 1 of the 2 Cars in the database. -.- i'm tampering with this for like 3 hours

and if there are no cars, it still shows the 1 car
ImTobi is offline   Reply With Quote