Help For House System - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help For House System (
/showthread.php?tid=665517)
Help For House System -
IndonesiaScripter - 07.04.2019
How To Convert This Script
Code:
format(string, sizeof(string), "{FFFFFF}Owner: Unknown\nPrice: $%d\nLevel: %d\nHouse: %d", House[i][Price], Inside[i][0], i);
To DialogMessage?
Re: HELP For Dialog -
SiaReyes - 07.04.2019
pawn Code:
format(string, sizeof(string), "{FFFFFF}Owner: Unknown\nPrice: $%d\nLevel: %d\nHouse: %d", House[i][Price], Inside[i][0], i);
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "HOUSE INFO MSG",string, "OK", "");
Re: HELP For Dialog -
IndonesiaScripter - 07.04.2019
Like This?
Code:
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "{FFFFFF}Owner: Unknown\nPrice: $%d\nLevel: %d\nHouse: %d", House[i][Owner], House[i][Price], Inside[i][0], i, "OK", "");
But Error Script
Code:
C:\Users\PC4\Documents\PROJECT\filterscripts\House.pwn(238) : warning 202: number of arguments does not match definition
C:\Users\PC4\Documents\PROJECT\filterscripts\House.pwn(238) : warning 202: number of arguments does not match definition
C:\Users\PC4\Documents\PROJECT\filterscripts\House.pwn(238) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Warnings.
Re: Help For House System -
Markski - 07.04.2019
Include both lines the way they are.
You need to format the string separately. You cannot format the string while showing the player dialog.