dialog problem
#1

PHP код:
CMD:stats(playerid,params[]) {
    new 
string[100], pDeathsplayer1hms,playername[MAX_PLAYER_NAME];
    if(
isnull(params)) player1 playerid;
     else 
player1 strval(params);
    if(
IsPlayerConnected(player1)) {
    new 
Float:xFloat:yFloat:zFloat:healthFloat:armor;
         
GetPlayerPos(playeridx,y,z); GetPlayerHealth(playeridhealth);
         
GetPlayerArmour(playeridarmor);
        
TotalGameTime(player1hms);
        
PlayerPlaySound(playerid11370.00.00.0);
        
GetPlayerName(player1playernamesizeof(playername));
         if(
PlayerInfo[player1][Deaths] == 0pDeaths 1; else pDeaths PlayerInfo[player1][Deaths];
        
format(stringsizeof(string), "| %s's Stats: \n Kills: %d \n Deaths: %d \n Ratio: %0.2f \n Money: $%d \n Time: %d \nhrs %d \nmins %d \nsecs %d\nScore: %d \n Health:%d \n Armour:%d",PlayerName2(player1), PlayerInfo[player1][Kills], PlayerInfo[player1][Deaths], Float:PlayerInfo[player1][Kills]/Float:pDeaths,GetPlayerMoney(player1), hmsGetPlayerScore(playerid), floatround(health),armor);
        
ShowPlayerDialog(playerid1112DIALOG_STYLE_MSGBOX,"STATS"string,"Close"); ////this line
    
} else return SendClientMessage(playeridred"Player Not Connected!");
    return 
1;

warning 202: number of arguments does not match definition
Reply


Messages In This Thread
dialog problem - by sanamalik400 - 05.11.2015, 14:29
Re: dialog problem - by AbyssMorgan - 05.11.2015, 14:35
Re: dialog problem - by sanamalik400 - 05.11.2015, 14:43
Re: dialog problem - by AbyssMorgan - 05.11.2015, 14:49
Re: dialog problem - by sanamalik400 - 05.11.2015, 15:01
Re: dialog problem - by AbyssMorgan - 05.11.2015, 15:07
Re: dialog problem - by sanamalik400 - 05.11.2015, 15:13
Re: dialog problem - by AbyssMorgan - 05.11.2015, 15:16

Forum Jump:


Users browsing this thread: 2 Guest(s)