Help For House System
#1

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?
Reply
#2

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", "");
Reply
#3

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.
Reply
#4

Include both lines the way they are.

You need to format the string separately. You cannot format the string while showing the player dialog.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)