SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 23/12/2012, 01:00 PM   #1
geohareas
Big Clucker
 
Join Date: Sep 2012
Posts: 180
Reputation: -1
Question DIALOG HELP - /credits command

Hello there,

Guys i am a newbie developed and i am trying all the day to make an /credits command with a dialog (MSG_BOX)
but i get errors all the time..:@

Can you please help me?I want a template like this:

(Title)Server Credits:
(MSG_BOX) BLAH BLAH
(BUTTONS)"OK"," "

Actually i cant neither script the command,nor the dialog!! help me please! can you please send me a command?
(It will be easy for you!)

Thanks in advance for reading my post!

Best regards,
George
geohareas is offline   Reply With Quote
Old 23/12/2012, 01:42 PM   #2
geohareas
Big Clucker
 
Join Date: Sep 2012
Posts: 180
Reputation: -1
Default Re: DIALOG HELP - /credits command

none?
geohareas is offline   Reply With Quote
Old 23/12/2012, 01:44 PM   #3
SilverKiller
Gangsta
 
SilverKiller's Avatar
 
Join Date: Nov 2012
Location: =>space<=
Posts: 626
Reputation: 56
Default Re: DIALOG HELP - /credits command

I Can help! Skype! if u have?
SilverKiller is offline   Reply With Quote
Old 23/12/2012, 01:46 PM   #4
Patrick
Guest
 
Posts: n/a
Default Re: DIALOG HELP - /credits command

Here you go
pawn Code:
if (strcmp("/credits", cmdtext, true, 10) == 0)
    {
        ShowPlayerDialog(playerid,5000,DIALOG_STYLE_MSGBOX,"ServerCredits","Bla Bla Bla","OK","");
        return 1;
    }
  Reply With Quote
Old 23/12/2012, 02:02 PM   #5
geohareas
Big Clucker
 
Join Date: Sep 2012
Posts: 180
Reputation: -1
Default Re: DIALOG HELP - /credits command

Really thank you,reputation added to both!
geohareas is offline   Reply With Quote
Old 20/01/2020, 08:40 AM   #6
MayankBoss
Banned
 
Join Date: Dec 2019
Posts: 5
Reputation: 0
Default Re: DIALOG HELP - /credits command

if (strcmp("/credits", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid,5000,DIALOG_STYLE_MSGBOX ,"ServerCredits","BOSS","OK" ,"");
return 1;
}

THIS ARE THE CODES BY ADDING THIS TO MY GAMEMODE .pwn FILES AM GETTING THIS ERROR

E:\server 2.0\gamemodes\B-Freeroam.pwn(233) : error 010: invalid function or declaration
E:\server 2.0\gamemodes\B-Freeroam.pwn(236) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.

Pls help me out

My discord id - Boss#5950
MayankBoss is offline   Reply With Quote
Old 20/01/2020, 08:59 AM   #7
oghabanjb
Little Clucker
 
Join Date: May 2018
Posts: 37
Reputation: 1
Default Re: DIALOG HELP - /credits command

Quote:
Originally Posted by MayankBoss View Post
if (strcmp("/credits", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid,5000,DIALOG_STYLE_MSGBOX ,"ServerCredits","BOSS","OK" ,"");
return 1;
}

THIS ARE THE CODES BY ADDING THIS TO MY GAMEMODE .pwn FILES AM GETTING THIS ERROR

E:\server 2.0\gamemodes\B-Freeroam.pwn(233) : error 010: invalid function or declaration
E:\server 2.0\gamemodes\B-Freeroam.pwn(236) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.

Pls help me out

My discord id - Boss#5950
Put your code in OnPlayerCommandText()
__________________
+REP if I helped you.
Sorry for my bad english.
oghabanjb is offline   Reply With Quote
Old 20/01/2020, 11:58 AM   #8
ShadowMortar
Huge Clucker
 
ShadowMortar's Avatar
 
Join Date: Jul 2016
Location: Croatia
Posts: 236
Reputation: 49
Default Re: DIALOG HELP - /credits command

PHP Code:
CMD:creditsplayerid ) return ShowPlayerDialog(playerid,5000,DIALOG_STYLE_MSGBOX,"ServerCredits","Bla Bla Bla","OK",""); 
__________________
Quote:
Originally Posted by CheezIt View Post
Follow your heart and own style.
Feel free to PM me if you need help.
Quote:
Originally Posted by Pottus View Post
That is perfectly fine, I'm just pointing out where you made mistakes what does hearing "good job" get you? Absolutely nothing. You need to hear the problems otherwise you'll keep making the same mistakes
ShadowMortar 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
..:: /credits command::.. ?? Ammo Scripting Help 8 27/11/2016 01:38 AM
[mysql] [dialog] How of command to make dialog mariomako Help Archive 0 20/05/2011 09:18 PM
Credits Kwarde Help Archive 2 13/04/2011 05:56 AM


All times are GMT. The time now is 09:56 AM.


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