Jump to content
  • 0

pomoc Ako Predlžit Dialog


BoCo

Dotaz

Custe ako predlžim dialog??

 

Zatial mam to takto:

 

if (strcmp("/pravidla", cmdtext, true, 10) == 0)
{
new string[150];
ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"Pravidla",string,"Zrušiť","");
strcat, string,"1.pravidlo");
return 1;
}
return 0;
}

 

A hadze chyby:

 

C:\Documents and Settings\kosar\Desktop\Marián\PAWNO\cheaty.pwn(102) : error 076: syntax error in the expression, or invalid function call
C:\Documents and Settings\kosar\Desktop\Marián\PAWNO\cheaty.pwn(102) : error 029: invalid expression, assumed zero
C:\Documents and Settings\kosar\Desktop\Marián\PAWNO\cheaty.pwn(102) : warning 215: expression has no effect
Pawn compiler 3.2.3664	 Copyright (c) 1997-2006, ITB CompuPhase

2 Errors.

 

 

Niekedy som uš dialog predlžoval pametam si len že nieko tak strcat :d ale uš neviem. Za každu radu predom díky ;)

 

V pawnu som začiatočník :d

Link to comment
Share on other sites

2 odpovědí na tuto otázku

Recommended Posts

  • 0
if(strcmp("/pravidla",cmdtext,true,10) == 0)
{
new string[150]; //Toto je velikost pole maximalni delka znaku kolik to bude obsahovat pokud budeš mít málo nebude se to zobrazovat tak to zvětši.
strcat(string,"Pravidlo 1\nPravidlo 2\nPravidlo 3\nPravidlo 4"); //Použití funkce strcat \n znamená že to pravidlo bude na druhém řádku to už si tam napiš jak chceš pokud budeš mít moc dlouhej řádek tak tam stačí dat další strcat pod to.
ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"Pravidla",string,"Zrušit",""); //No a tady už klasicky zobrazíš dialog s tím stringem takže to zobrazí ty pravidla to je jasné.
return 1;
}
return 0;
}

  • Líbí se mi to! (+1) 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...