SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 08/05/2018, 04:45 AM   #1
BanSilog
Big Clucker
 
BanSilog's Avatar
 
Join Date: Nov 2017
Location: Random House
Posts: 91
Reputation: 16
Default Dialog Msbox for /credits

Good day mr/mrs

who can give me /credits dialog msbox

For Trucking server Thank you For feed back :">
BanSilog is offline   Reply With Quote
Old 08/05/2018, 08:41 AM   #2
BanSilog
Big Clucker
 
BanSilog's Avatar
 
Join Date: Nov 2017
Location: Random House
Posts: 91
Reputation: 16
Default Re: Dialog Msbox for /credits

ANYONE HELP ME PLEASE?
BanSilog is offline   Reply With Quote
Old 08/05/2018, 08:50 AM   #3
CodeStyle175
Huge Clucker
 
CodeStyle175's Avatar
 
Join Date: Apr 2014
Posts: 468
Reputation: 35
Default Re: Dialog Msbox for /credits

Some english letter tutorial here?
ShowPlayerDialog(playerid,0,"Credits","Main scripter: Jason\nMain admin: Jason","okay","");
CodeStyle175 is offline   Reply With Quote
Old 08/05/2018, 08:55 AM   #4
TadePoleMG
Big Clucker
 
TadePoleMG's Avatar
 
Join Date: Apr 2018
Location: Uttar Pradesh, India
Posts: 167
Reputation: 2
Default Re: Dialog Msbox for /credits

Hi

Here you go

PHP Code:
#include <a_samp>
#include <zcmd>

#define DIALOG_CREDITS 1223
#define COL_GREEN        "{6EF83C}"
#define COL_RED         "{F81414}"
#define COL_BLUE        "{0049FF}"

CMD:credits(playerid,params[])
{
       new 
string[128];
       
strcat(string,""COL_RED"1: "COL_BLUE" First Text here\n");
       
strcat(string,""COL_RED"2: "COL_BLUE" Second Text here\n");
       
strcat(string,""COL_RED"3: "COL_BLUE" Third Text here\n");
       
strcat(string,""COL_RED"4: "COL_BLUE" Fourth Text here\n");
       
strcat(string,""COL_RED"5: "COL_BLUE" Fifth Text here\n");
       
ShowPlayerDialog(playerid,DIALOG_CREDITS,DIALOG_STYLE_MSGBOX,""COL_GREEN"Server Credits Dialog:",string,"Close","");
       return 
1;

Thank You.
rep++, If i helped you.
__________________
-| Gaming 'N' Scripting |-

Last edited by TadePoleMG; 08/05/2018 at 01:32 PM.
TadePoleMG is offline   Reply With Quote
Old 08/05/2018, 11:38 AM   #5
BanSilog
Big Clucker
 
BanSilog's Avatar
 
Join Date: Nov 2017
Location: Random House
Posts: 91
Reputation: 16
Default Re: Dialog Msbox for /credits

Quote:
Originally Posted by TadePoleMG View Post
Hi

Here you go

PHP Code:
#include <a_samp>
#include <zcmd>

#define DIALOG_CREDITS 1223
#define COL_GREEN        "{6EF83C}"
#define COL_RED         "{F81414}"
#define COL_BLUE        "{0049FF}"

CMD:credits(playerid,params[])
{
       new 
string[128];
       
strcat(string,""COL_RED"1: "COL_BLUE" First Text here");
       
strcat(string,""COL_RED"2: "COL_BLUE" Second Text here");
       
strcat(string,""COL_RED"3: "COL_BLUE" Third Text here");
       
strcat(string,""COL_RED"4: "COL_BLUE" Fourth Text here");
       
strcat(string,""COL_RED"5: "COL_BLUE" Fifth Text here");
       
ShowPlayerDialog(playerid,DIALOG_CREDITS,DIALOG_STYLE_MSGBOX,""COL_GREEN"Server Credits Dialog:",string,"Close","");
       return 
1;

Thank You.
rep++, If i helped you.

D:\ROOT FOLDER WAG DELETE\gamemodes\PPC_Trucking.pwn(1475) : error 029: invalid expression, assumed zero
D:\ROOT FOLDER WAG DELETE\gamemodes\PPC_Trucking.pwn(1475) : error 017: undefined symbol "cmd_credits"
D:\ROOT FOLDER WAG DELETE\gamemodes\PPC_Trucking.pwn(1475) : error 029: invalid expression, assumed zero
D:\ROOT FOLDER WAG DELETE\gamemodes\PPC_Trucking.pwn(1475) : fatal error 107: too many error messages on one line

I got that error but
+rep for help but i have error
BanSilog is offline   Reply With Quote
Old 08/05/2018, 01:29 PM   #6
TadePoleMG
Big Clucker
 
TadePoleMG's Avatar
 
Join Date: Apr 2018
Location: Uttar Pradesh, India
Posts: 167
Reputation: 2
Default Re: Dialog Msbox for /credits

Hi Sorry
Use this-
PHP Code:
#include <a_samp>

#define DIALOG_CREDITS 1223
#define COL_GREEN        "{6EF83C}"
#define COL_RED         "{F81414}"
#define COL_BLUE        "{0049FF}"

// OnPlayerCommandText
if (strcmp("/credits"cmdtexttrue10) == 0)
{
       new 
string[128];
       
strcat(string,""COL_RED"1: "COL_BLUE" First Text here\n");
       
strcat(string,""COL_RED"2: "COL_BLUE" Second Text here\n");
       
strcat(string,""COL_RED"3: "COL_BLUE" Third Text here\n");
       
strcat(string,""COL_RED"4: "COL_BLUE" Fourth Text here\n");
       
strcat(string,""COL_RED"5: "COL_BLUE" Fifth Text here\n");
       
ShowPlayerDialog(playerid,DIALOG_CREDITS,DIALOG_STYLE_MSGBOX,""COL_GREEN"Server Credits Dialog:",string,"Close","");
       return 
1;

__________________
-| Gaming 'N' Scripting |-
TadePoleMG is offline   Reply With Quote
Old 08/05/2018, 05:03 PM   #7
BanSilog
Big Clucker
 
BanSilog's Avatar
 
Join Date: Nov 2017
Location: Random House
Posts: 91
Reputation: 16
Default Re: Dialog Msbox for /credits

+Rep Thank you for help
BanSilog is offline   Reply With Quote
Old 18/05/2018, 05:57 AM   #8
GTLS
Gangsta
 
GTLS's Avatar
 
Join Date: Aug 2014
Location: India
Posts: 825
Reputation: 91
Default Re: Dialog Msbox for /credits

This is Clearly in the wrong section and to get rep+, no one even cared to correct him and to telling him this is a wrong section..

This section is to release a Tutorial. Not to ask for tutorial. If you want someone to teach you something, you ask in Scripting Help.
__________________

I don't help for rep. I help cuz I was helped in the past.


California State Roleplay - X Update Now under beta testing phase. Stay Tuned.
GTLS is offline   Reply With Quote
Old 18/05/2018, 12:17 PM   #9
TadePoleMG
Big Clucker
 
TadePoleMG's Avatar
 
Join Date: Apr 2018
Location: Uttar Pradesh, India
Posts: 167
Reputation: 2
Default Re: Dialog Msbox for /credits

Yes you are right GTLS from now i also advice others not to post things like that
__________________
-| Gaming 'N' Scripting |-
TadePoleMG 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help In CMD Credits kyriakos587 Scripting Help 5 21/06/2015 01:09 PM
Credits System MrCallum Scripting Help 3 17/08/2014 11:11 PM
DIALOG HELP - /credits command geohareas Scripting Help 4 23/12/2012 02:02 PM
credits Abhishek. Server Support 4 13/04/2012 11:42 AM
Credits Kwarde Help Archive 2 13/04/2011 05:56 AM


All times are GMT. The time now is 09:40 PM.


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