format(string, sizeof(string), ">>Welcome back, %s!<<\n[INFORMATIONS]:\n[Admin Level]: %d\n[Vip Level]: %d\n[Score]: %d\n[Money]: %d","Ok","", name, gPlayerInfo[playerid][PLAYER_LEVEL], gPlayerInfo[playerid][PLAYER_VIP], GetPlayerScore(playerid), GetPlayerMoney(playerid));
ShowPlayerDialog(playerid, 117, DIALOG_STYLE_MSGBOX, string);
C:\Users\tadej\Desktop\SA-MP Server\gamemodes\New.pwn(609) : warning 202: number of arguments does not match definition
C:\Users\tadej\Desktop\SA-MP Server\gamemodes\New.pwn(609) : warning 202: number of arguments does not match definition
C:\Users\tadej\Desktop\SA-MP Server\gamemodes\New.pwn(609) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Warnings.
ShowPlayerDialog(playerid, 117, DIALOG_STYLE_MSGBOX, string);
format(string, sizeof(string), ">>Welcome back, %s!<<\n[INFORMATIONS]:\n[Admin Level]: %d\n[Vip Level]: %d\n[Score]: %d\n[Money]: %d", name, gPlayerInfo[playerid][PLAYER_LEVEL], gPlayerInfo[playerid][PLAYER_VIP], GetPlayerScore(playerid), GetPlayerMoney(playerid));
ShowPlayerDialog(playerid, 117, DIALOG_STYLE_MSGBOX, "Title", string, "button1", "button2");
: %d","Ok","", |
: %d","Ok","Cancel", |
ShowPlayerDialog(playerid, 117, DIALOG_STYLE_MSGBOX, "Title", string, "button1", "button2");
|
You also formatted the string wrongfully... I edited the message, so edit your format() function additionally.
|