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, 05:45 AM   #1
BanSilog
Big Clucker
 
BanSilog's Avatar
 
Join Date: Nov 2017
Location: Philippines
Posts: 102
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, 09:41 AM   #2
BanSilog
Big Clucker
 
BanSilog's Avatar
 
Join Date: Nov 2017
Location: Philippines
Posts: 102
Reputation: 16
Default Re: Dialog Msbox for /credits

ANYONE HELP ME PLEASE?
BanSilog is offline   Reply With Quote
Old 08/05/2018, 09:50 AM   #3
CodeStyle175
Banned
 
Join Date: Apr 2014
Posts: 473
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, 09: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 02:32 PM.
TadePoleMG is offline   Reply With Quote
Old 08/05/2018, 12:38 PM   #5
BanSilog
Big Clucker
 
BanSilog's Avatar
 
Join Date: Nov 2017
Location: Philippines
Posts: 102
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, 02: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, 06:03 PM   #7
BanSilog
Big Clucker
 
BanSilog's Avatar
 
Join Date: Nov 2017
Location: Philippines
Posts: 102
Reputation: 16
Default Re: Dialog Msbox for /credits

+Rep Thank you for help
BanSilog is offline   Reply With Quote
Old 18/05/2018, 06:57 AM   #8
GTLS
Gangsta
 
GTLS's Avatar
 
Join Date: Aug 2014
Location: India
Posts: 878
Reputation: 92
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.


Some thing for ya. Click em
Basic House System

Simple Speedo

Retired from SAMP Scene. Might open SAMP Forums once in a while.
GTLS is offline   Reply With Quote
Old 18/05/2018, 01: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 02:09 PM
Credits System MrCallum Scripting Help 3 18/08/2014 12:11 AM
DIALOG HELP - /credits command geohareas Scripting Help 4 23/12/2012 03:02 PM
credits Abhishek. Server Support 4 13/04/2012 12:42 PM
Credits Kwarde Help Archive 2 13/04/2011 06:56 AM


All times are GMT. The time now is 05:32 PM.


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