DIALOG_STYLE_MSGBOX Problem
#1

Hi, I have a problem with this code:

DRUG_GRAM_PRICE is already defined as being 500
pawn Код:
new pdrg = PDrugs[playerid][pDrugs];
    new dprice = DRUG_GRAM_PRICE;
    new dworth = pdrg * dprice;
    ShowPlayerDialog(playerid, MY_DRUGS_MENU, DIALOG_STYLE_MSGBOX,"{006600}Your drug stats:","{00FF00}Drugs: %dg\n{00FF00}Drugs worth: %d","Ok", PDrugs[playerid][pDrugs], dworth);
The warnings:

Код:
C:\Users\Cretu\Desktop\Testing Server\filterscripts\dsystem.pwn(277) : warning 202: number of arguments does not match definition
C:\Users\Cretu\Desktop\Testing Server\filterscripts\dsystem.pwn(276) : warning 204: symbol is assigned a value that is never used: "dworth"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
What is wrong? Please help me.
Reply
#2

Someone?
Reply
#3

use this
pawn Код:
new dstr[150];
format(dstr, sizeof(dstr), "{00FF00}Drugs: %dg\n{00FF00}Drugs worth: %d", PDrugs[playerid][pDrugs], dworth);
ShowPlayerDialog(playerid, MY_DRUGS_MENU, DIALOG_STYLE_MSGBOX,"{006600}Your drug stats:", dstr,"Ok", "");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)