warning 202: number of arguments does not match definition
#1

warning 202: number of arguments does not match definition
Код:
C:\Users\Administrator\Documents\GTA San Andreas User Files\server\gamemodes\JIHANRAMADHAN.pwn(1496) : warning 202: number of arguments does not match definition
C:\Users\Administrator\Documents\GTA San Andreas User Files\server\gamemodes\JIHANRAMADHAN.pwn(1510) : warning 202: number of arguments does not match definition
Line 1496
Код:
ShowPlayerDialog(playerid,9,DIALOG_STYLE_MSGBOX,string,"TUTUP","");
Line 1510
Код:
ShowPlayerDialog(playerid,56,DIALOG_STYLE_MSGBOX,string,"TUTUP","");
Script
Код:
CMD:afk(playerid, params[])
{
        new string[70];
        GetPlayerPos(playerid, PosX[playerid], PosY[playerid], PosZ[playerid]);
        GetPlayerFacingAngle(playerid, PosA[playerid]);
        PosI[playerid] = (GetPlayerInterior(playerid));

        SetPlayerInterior(playerid,3);
        SetPlayerPos(playerid,198.3797,160.8905,1003.0300);
        SetPlayerFacingAngle(playerid,177.0350);
        SetCameraBehindPlayer(playerid);

        TogglePlayerControllable(playerid,0);
        new away[MAX_PLAYER_NAME];
        GetPlayerName(playerid, away, MAX_PLAYER_NAME);
        format(string, sizeof(string), "%s Sedang Dalam Mode AFK ketik /backafk untuk kembali!", away);
        ShowPlayerDialog(playerid,9,DIALOG_STYLE_MSGBOX,string,"TUTUP","");
        return 1;
}
CMD:backafk(playerid, params[])
{
        SetPlayerPos(playerid, PosX[playerid], PosY[playerid], PosZ[playerid]);
        SetPlayerFacingAngle(playerid, PosA[playerid]);
        SetCameraBehindPlayer(playerid);
        SetPlayerInterior(playerid, PosI[playerid]);
        new string[70];
        TogglePlayerControllable(playerid,1);
        new back[MAX_PLAYER_NAME];
        GetPlayerName(playerid, back, MAX_PLAYER_NAME);
        format(string, sizeof(string), "%s Telah Kembali Dari Mode AFK!", back);
        ShowPlayerDialog(playerid,56,DIALOG_STYLE_MSGBOX,string,"TUTUP","");
        return 1;
 }
Reply
#2

(playerid, dialogid, style, caption[], info[], button1[], button2[])

You need caption[],, ex:

ShowPlayerDialog(playerid,9,DIALOG_STYLE_MSGBOX,"EXAMPLE:",string,"TUTUP","");
Reply
#3

thanks...

get reputation from me
Reply
#4

ada yang kurang tuh gan

Код:
ShowPlayerDialog(playerid, DIALOG_ID, YOUR_DIALOG_STYLE, "Hello", "string", "Yea", "");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)