SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 16/04/2018, 12:22 PM   #1
TitoRayne
Big Clucker
 
Join Date: May 2017
Posts: 149
Reputation: 1
Default Help here please

Original
PHP Code:
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 Code:
ShowPlayerDialogEx(playeridWATCHTUTDIALOG_STYLE_MSGBOX"{00FF00}Atrax Roleplay - Tutorial""Click Yes for to watch the short Tutorial please!.""Yes"); 
Code:
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.
TitoRayne is offline   Reply With Quote
Old 16/04/2018, 12:29 PM   #2
Maxandmov
Big Clucker
 
Maxandmov's Avatar
 
Join Date: Feb 2011
Location: Moscow, Russia.
Posts: 129
Reputation: 9
Default Re: Help here please

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:

Code:
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.
__________________
Give me rep, SAMPercluckers! (As long as I deserve it)
Maxandmov is online now   Reply With Quote
Old 16/04/2018, 12:31 PM   #3
TitoRayne
Big Clucker
 
Join Date: May 2017
Posts: 149
Reputation: 1
Default Re: Help here please

Quote:
Originally Posted by Maxandmov View Post
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:

Code:
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
TitoRayne is offline   Reply With Quote
Old 16/04/2018, 12:54 PM   #4
TitoRayne
Big Clucker
 
Join Date: May 2017
Posts: 149
Reputation: 1
Default Re: Help here please

How about this help?
same problem number of argument
PHP Code:
        new daymonthyear;
        
getdate(daymonthyear);

        
SendClientMessage(playeridCOLOR_NEWS,"______________________________________- %s %02d/%02d/%d -______________________________________"GetPlayerNameEx(playerid), daymonthyear); 
TitoRayne is offline   Reply With Quote
Old 16/04/2018, 01:09 PM   #5
UFF
Big Clucker
 
Join Date: Feb 2018
Posts: 104
Reputation: 7
Default Re: Help here please

Code:
        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);
UFF is offline   Reply With Quote
Old 16/04/2018, 02:01 PM   #6
Mugala
Gangsta
 
Mugala's Avatar
 
Join Date: Nov 2012
Location: behind u
Posts: 641
Reputation: 30
Default Re: Help here please

use format first, than send the messages (like UFF did)
__________________
here to help
Mugala is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 01:24 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.