Help here please
#1

Original
PHP код:
ShowPlayerDialogEx(playeridWATCHTUTDIALOG_STYLE_MSGBOX"{00FF00}Atrax Roleplay - Tutorial""Would you like to watch a small tutorial about the server basics?""Yes""No"); 
I want player to watch tutorial by clicking YES only and not NO

PHP код:
ShowPlayerDialogEx(playeridWATCHTUTDIALOG_STYLE_MSGBOX"{00FF00}Atrax Roleplay - Tutorial""Click Yes for to watch the short Tutorial please!.""Yes"); 
Код:
73672) : warning 202: number of arguments does not match definition
after i removed the OPTION "NO" it gives me an error message help me here please.
Reply
#2

I believe if you don't want to have a second button, you leave second button caption blank. See to the WIKI PAGE here.

In your case, it probably must be something like this:

Код:
ShowPlayerDialogEx(playerid, WATCHTUT, DIALOG_STYLE_MSGBOX, "{00FF00}Atrax Roleplay - Tutorial", "Click Yes for to watch the short Tutorial please!.", "Yes", "");
And, seriously, people, start googling it in SAMP wiki or via moogel; issues like that don't really require a scripting help thread, you'll waste less time if you figure it yourself by simply reading what's on the tin over there.
Reply
#3

Quote:
Originally Posted by Maxandmov
Посмотреть сообщение
I believe if you don't want to have a second button, you leave second button caption blank. See to the WIKI PAGE here.

In your case, it probably must be something like this:

Код:
ShowPlayerDialogEx(playerid, WATCHTUT, DIALOG_STYLE_MSGBOX, "{00FF00}Atrax Roleplay - Tutorial", "Click Yes for to watch the short Tutorial please!.", "Yes", "");
And, seriously, people, start googling it in SAMP wiki or via moogel; issues like that don't really require a scripting help thread, you'll waste less time if you figure it yourself by simply reading what's on the tin over there.
Sorry hehe, am just editing the script xD
Reply
#4

How about this help?
same problem number of argument
PHP код:
        new daymonthyear;
        
getdate(daymonthyear);
        
SendClientMessage(playeridCOLOR_NEWS,"______________________________________- %s %02d/%02d/%d -______________________________________"GetPlayerNameEx(playerid), daymonthyear); 
Reply
#5

Код:
        new day, month, year, str[100]; 
        getdate(day, month, year); 

format(str, sizeof(str), "______________________________________- %s %02d/%02d/%d -______________________________________", GetPlayerNameEx(playerid), day, month, year);
SendClientMessage(playerid, COLOR_NEWS, str);
Reply
#6

use format first, than send the messages (like UFF did)
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)