2ERROS..
#1

I Got 2 erros when i trying to Make This...

Код:
error 027: invalid character constant
error 017: undefined symbol "DIALOG_STYLE_TABLIST_HEADERS
Код:
CMD:shop(playerid,params[])
{
    ShowPlayerDialog(playerid,WEAP_DIALOG,DIALOG_STYLE_TABLIST_HEADERS,"{6EF83C}Do you Want Anything From Shop?!","Weapon\tPrice\tAmmo\n\Deagle\t$10000\t100\n\Sawnoff\t$15000\t60\n\Grenade\t$15000\t5\n\Combat Shotgun\t$15000\t40\n\UZI\t$40000\t250\n\Shotgun\t$16000\t50\n\M4\t$25000\t100\nSniper\t$25000\t50","Buy", "Close");
    return 1;
}
What's wrong here.
Reply
#2

Search for "\n\S" these types of string in your list string. You shouldn't put a \ after \n unless the second \ is going to be valid (\S is not valid). I think the \ sign you're thinking of is from this example here: https://sampwiki.blast.hk/wiki/Dialog_Styles if I'm right.

It means that the compiler will read it as one line, similar to what is used when creating longer macro's, if I'm not mistaken of its meaning.
Reply
#3

Hi, i remove everything Like \n\ so i got a one error

Код:
error 017: undefined symbol "DIALOG_STYLE_TABLIST_HEADERS"
Reply
#4

What version of the sa-mp server are you using?
Reply
#5

0.3.7
Reply
#6

#define DIALOG_STYLE_TABLIST_HEADERS 5
Reply
#7

wew thanks worked.
Reply
#8

Код:
  ShowPlayerDialog(playerid,WEAP_DIALOG,5,"{6EF83C}Do you Want Anything From Shop?!","Weapon\tPrice\tAmmo\n\Deagle\t$10000\t100\n\Sawnoff\t$15000\t60\n\Grenade\t$15000\t5\n\Combat Shotgun\t$15000\t40\n\UZI\t$40000\t250\n\Shotgun\t$16000\t50\n\M4\t$25000\t100\nSniper\t$25000\t50","Buy", "Close");
Try like this, 5 is the defined value of DIALOG_STYLE_TABLIST_HEADERS

[EDIT] Oops, didn't reload the page.
Reply
#9

np, thank you too Troydere rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)