Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Using functions and variables in dialogs

$
0
0


Can I get an example code for something along the lines of this? I'm just looking to understand how they did something like this through the style of dialog used.

PHP Code:

ShowPlayerDialog(playeriddialogidDIALOG_STYLE_TABLIST_HEADERS"Buy Weapon",
"Weapon\tPrice\tAmmo\n\
Deagle\t$5000\t100\n\
Sawnoff\t$5000\t100\n\
Pistol\t$1000\t50"
// Etc.
"Select""Cancel"); 

How can we use things like GetPlayerName and our custom functions. Haven't worked with dialogs in a long time.

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>