SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 30/12/2019, 01:12 AM   #1
MatusVietNam
Little Clucker
 
Join Date: Nov 2019
Posts: 44
Reputation: 0
Default PhoneBook Dialog

How can I create a Dialog of contacts, save numbers, delete numbers, text?
MatusVietNam is offline   Reply With Quote
Old 30/12/2019, 07:44 AM   #2
Mugala
High-roller
 
Mugala's Avatar
 
Join Date: Nov 2012
Location: Georgia, Tbilisi
Posts: 1,162
Reputation: 73
Default Re: PhoneBook Dialog

For first, you gonna need a database or saving systems, I consider using MySQL.
so there are a few steps.

1) create a table for phone-numbers, you gonna need this structure.
ID (int-11, primary index, A_I)
ContactHolder (int-11) - there will be stored player ID.
ContactName (str-128 ) - there will be stored contact name.
Number (str-16) - there will be stored player's number.

2) create a dialogs, where player can add/delete/edit contacts.

3) in a dialogs, you have to use MySQL queries.
DELETE - to delete a contacts.
INSERT - to add a new contacts.
UPDATE - to update and save a contact.
__________________
Coding in 8 languages including Pawn, C#, C++ and SQL.
Available for hiring.

If you have a coding question or need an assistance in a code, just PM me.
If you want me to create something for you, here is a Discord Mugala#5651

Currently helping Community members in a coding.
Mugala is offline   Reply With Quote
Old 31/12/2019, 05:37 AM   #3
MatusVietNam
Little Clucker
 
Join Date: Nov 2019
Posts: 44
Reputation: 0
Default Re: PhoneBook Dialog

Can you reply to my message??
MatusVietNam is offline   Reply With Quote
Old 31/12/2019, 06:09 AM   #4
SiNaGaMeR
Big Clucker
 
Join Date: Feb 2018
Location: Germany
Posts: 66
Reputation: 1
Default Re: PhoneBook Dialog

so you want someone to create this system for you for free in this topic yes? Mugala told you how to do it, he gave you an idea.
SiNaGaMeR is offline   Reply With Quote
Old 31/12/2019, 12:23 PM   #5
MatusVietNam
Little Clucker
 
Join Date: Nov 2019
Posts: 44
Reputation: 0
Default Re: PhoneBook Dialog

But unfortunately, my skills are too poor to create a dialog, Sql I can create but connect, save, delete dialogs, I can not do, I'm bad
MatusVietNam 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
PhoneBook MatusVietNam Scripting Help 5 10/12/2019 01:01 PM
MySQL - Phonebook Sime30 Scripting Help 8 10/06/2016 08:03 PM
Hepl with phonebook Chris iceman Scripting Help 2 01/06/2012 11:41 AM
Phonebook Problem Smally Scripting Help 4 11/02/2012 02:27 PM
Phonebook borba Help Archive 1 24/04/2011 03:57 PM


All times are GMT. The time now is 05:55 AM.


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