C:\Users\Ryan\Desktop\Ryan's Server\gamemodes\VGRP.pwn(54877) : error 001: expected token: ";", but found "-identifier-"
ShowPlayerDialog(playerid,4,4,string,"BUTTON1","BUTTON2");
CMD:interiors(playerid,params[]) { if(PlayerInfo[playerid][pAdmin] >= 4) { new string[50]; format(string,sizeof(string),"Your interior is %d.",GetPlayerInterior(playerid)) ShowPlayerDialog(playerid,4,4,string,"BUTTON1","BUTTON2"); } else { SendClientMessage(playerid,COLOR_GRAD1,"No authorization."); } }
format(string,sizeof(string),"Your interior is %d.",GetPlayerInterior(playerid));
CMD:interiors(playerid,params[]) { if(PlayerInfo[playerid][pAdmin] >= 4) { new string[50]; format(string, sizeof(string),"Your interior is %d.",GetPlayerInterior(playerid)); ShowPlayerDialog(playerid, 4, 4, string,"BUTTON1","BUTTON2"); } else { SendClientMessage(playerid,COLOR_GRAD1,"No authorization."); } }
Try this
Код:
CMD:interiors(playerid,params[]) { if(PlayerInfo[playerid][pAdmin] >= 4) { new string[50]; format(string, sizeof(string),"Your interior is %d.",GetPlayerInterior(playerid)); ShowPlayerDialog(playerid, 4, 4, string,"BUTTON1","BUTTON2"); } else { SendClientMessage(playerid,COLOR_GRAD1,"No authorization."); } } |
ShowPlayerDialog(playerid, 4, DIALOG_STYLE_MSGBOX, "Title", string, "BUTTON1", "BUTTON2")
Shouldnt it be
pawn Код:
you have: ShowPlayerDialog(playerid, dialogid, style, info[], button1[], button2[]); it should be: ShowPlayerDialog(playerid, dialogid, style, caption[], info[], button1[], button2[]); |