OnPlayerClickPlayer
#1

Hello,
i made this but im getting Many Warnings.

Heres My Script:
pawn Код:
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
    ShowPlayerDialog(playerid, DIALOG_STATS, DIALOG_STYLE_MSGBOX, "Stats", "Name : %s | Admin Level : %d | VIP : %d | Score : %d | Cash : %d", GetName(playerid), pInfo[playerid][pAdmin], pInfo[playerid][pVip], GetPlayerScore(playerid), GetPlayerMoney(playerid), "Close", "");
    return 1;
}
Warnings:
Код:
D:\SETUPS\GAMESP~1\Server\GAMEMO~1\gvsy.pwn(1368) : warning 202: number of arguments does not match definition
D:\SETUPS\GAMESP~1\Server\GAMEMO~1\gvsy.pwn(1368) : warning 202: number of arguments does not match definition
D:\SETUPS\GAMESP~1\Server\GAMEMO~1\gvsy.pwn(1368) : warning 202: number of arguments does not match definition
D:\SETUPS\GAMESP~1\Server\GAMEMO~1\gvsy.pwn(1368) : warning 202: number of arguments does not match definition
D:\SETUPS\GAMESP~1\Server\GAMEMO~1\gvsy.pwn(1368) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Warnings.
Line No 1368:
pawn Код:
ShowPlayerDialog(playerid, DIALOG_STATS, DIALOG_STYLE_MSGBOX, "Stats", "Name : %s | Admin Level : %d | VIP : %d | Score : %d | Cash : %d", GetName(playerid), pInfo[playerid][pAdmin], pInfo[playerid][pVip], GetPlayerScore(playerid), GetPlayerMoney(playerid), "Close", "");
Help !
Reply
#2

pawn Код:
ShowPlayerDialog(playerid, DIALOG_STATS, DIALOG_STYLE_MSGBOX, "Stats", "Name : %s | Admin Level : %d | VIP : %d | Score : %d | Cash : %d", "Close", "",GetName(playerid), pInfo[playerid][pAdmin], pInfo[playerid][pVip], GetPlayerScore(playerid), GetPlayerMoney(playerid));
Reply
#3

Still 5 Warnings.
Reply
#4

pawn Код:
ShowPlayerDialog(playerid, DIALOG_STATS, DIALOG_STYLE_MSGBOX, "Stats"," Name : %s | Admin Level : %d | VIP : %d | Score : %d | Cash : %d", "Close", "",GetPlayerName(playerid), pInfo[playerid][pAdmin], pInfo[playerid][pVip], GetPlayerScore(playerid), GetPlayerMoney(playerid));
Reply
#5

You must format it first.
pawn Код:
public OnPlayerClickPlayer(playerid, clickedid, source)
{
 new dstring[256];
 format(dstring, sizeof(dstring), "Name : %s | Admin Level : %d | VIP : %d | Score : %d | Cash : %d",GetName(playerid), pInfo[playerid][pAdmin], pInfo[playerid][pVip], GetPlayerScore(playerid), GetPlayerMoney(playerid));
 ShowPlayerDialog(playerid, DIALOG_STATS, DIALOG_STYLE_MSGBOX, "Stats", dstring, "Close", "");
 return 1;
}
Reply
#6

Oh fuck! Forgot that
Reply
#7

Thanks LordZ and Faisal Khan.
Reply
#8

Sorry Fixed it.
Sorry for Double Post.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)