24.04.2011, 20:15
(
Последний раз редактировалось Lilcuete; 24.04.2011 в 20:41.
Причина: Name edit
)
Ok i'm having this problem when a cop does /mdc and clicks search vehicle license and they type in the vehicle license plate it is supposed to show the specific vehicle plate info, but it doesn't it doesn't even show the info,and it shows the wrong car.Heres the code
here are some pics to show what happens
see how the vehicle license plate says Test i type that in and it does this
then i click "Ok" and it doesn't even exit it it does this
Please can someone help me thanks.
pawn Код:
if(dialogid == DACCT31)
{
if (response == 1)
{
new giveplayerid;
new dstring[256];
new sendername[MAX_PLAYER_NAME];
giveplayerid = ReturnUser(inputtext);
GetPlayerName(giveplayerid, sendername, sizeof(sendername));
GiveNameSpace(sendername);
new string[256], string2[256];
for(new i; i<SCRIPT_CARS; i++)
{
if(strcmp(CarInfo[i][cLicense], inputtext, true)== 0)
{
new name[MAX_PLAYER_NAME];
strcpy(name,CarInfo[i][cOwner],MAX_PLAYER_NAME);
format(dstring, sizeof(dstring), "Owner: %s\r\nVehicle Model: %s\r\nInsurances %d\r\nColor1 %d\r\nColor2 %d\r\nTickets(price) $%d", name,
CarInfo[i][cDescription],CarInfo[i][cInsurances],CarInfo[i][cColorOne],CarInfo[i][cColorTwo],CarInfo[i][cTicket]);
ShowPlayerDialog(playerid,DACCT31,DIALOG_STYLE_MSGBOX,"MOBILE DATA COMPUTER",dstring,"Ok","Cancel");
return 1;
}
}
ShowPlayerDialog(playerid,54005,DIALOG_STYLE_MSGBOX,"Unsuccessfull search:","Vehicle Wasn't found !","Ok","");
}
}
see how the vehicle license plate says Test i type that in and it does this
then i click "Ok" and it doesn't even exit it it does this
Please can someone help me thanks.