SA-MP Forums Archive
OnPlayerClickPlayer - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: OnPlayerClickPlayer (/showthread.php?tid=401511)



OnPlayerClickPlayer - Avi Raj - 23.12.2012

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 !


Re: OnPlayerClickPlayer - Faisal_khan - 23.12.2012

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));



Re: OnPlayerClickPlayer - Avi Raj - 23.12.2012

Still 5 Warnings.


Re: OnPlayerClickPlayer - Faisal_khan - 23.12.2012

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));



Re: OnPlayerClickPlayer - Lordzy - 23.12.2012

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;
}



Re: OnPlayerClickPlayer - Faisal_khan - 23.12.2012

Oh fuck! Forgot that


Re: OnPlayerClickPlayer - Avi Raj - 23.12.2012

Thanks LordZ and Faisal Khan.


Re: OnPlayerClickPlayer - Avi Raj - 23.12.2012

Sorry Fixed it.
Sorry for Double Post.