Please help with: warning 202
#9

Quote:
Originally Posted by Babul
Посмотреть сообщение
replace
Код:
return ShowPlayerDialog(playerid,DIALOG_SKILLINFO,DIALOG_STYLE_MSGBOX,"%s's Stats:","Kills: [%d] | Deaths: [%d] | Ratio: [%0.2f] | Money: [$%d]\nTime: [%d] hrs [%d] mins [%d] secs","Ok","Cancel",PlayerName2(player1),AccInfo[player1][Kills], AccInfo[player1][Deaths], Float:AccInfo[player1][Kills]/Float:pDeaths,GetPlayerMoney(player1), h, m, s);
by
Код:
new stringtitle[64];
new string[128];
format(stringtitle,sizeof(stringtitle),"%s's Stats:",PlayerName2(player1));
format(string,sizeof(string),"Kills: [%d] | Deaths: [%d] | Ratio: [%0.2f] | Money: [$%d]\nTime: [%d] hrs [%d] mins [%d] secs",AccInfo[player1][Kills], AccInfo[player1][Deaths], Float:AccInfo[player1][Kills]/Float:pDeaths,GetPlayerMoney(player1), h, m, s);
return ShowPlayerDialog(playerid,DIALOG_SKILLINFO,DIALOG_STYLE_MSGBOX,stringtitle,string,"Ok","Cancel",);
the problem with the amount of mismatching parameter warnings, obviously indicates the ShowPlayerDialog not used properly. you need to first format a string, then you may use it there. the formatting cant be done in the functions' parameters in realtime, thats all
IT WORKED!!!!! THANKS VERY MUCH!!!!!!!!!!!!!!!!

THANKS TO ALL TOOOOOOOOO!!!!
Reply


Messages In This Thread
Please help with: warning 202 - by [DC] - 13.12.2011, 16:46
Re: Please help with: warning 202 - by wildcookie007 - 13.12.2011, 16:50
Re: Please help with: warning 202 - by doreto - 13.12.2011, 16:52
Respuesta: Re: Please help with: warning 202 - by [DC] - 13.12.2011, 16:58
Re: Please help with: warning 202 - by Ballu Miaa - 13.12.2011, 17:28
Respuesta: Please help with: warning 202 - by [DC] - 13.12.2011, 17:34
Re: Please help with: warning 202 - by Babul - 13.12.2011, 17:38
Re: Respuesta: Please help with: warning 202 - by Ballu Miaa - 13.12.2011, 17:38
Respuesta: Re: Please help with: warning 202 - by [DC] - 13.12.2011, 17:54
Re: Please help with: warning 202 - by Ballu Miaa - 13.12.2011, 17:56

Forum Jump:


Users browsing this thread: 3 Guest(s)