Jump to content
  • 0

Dialog Mare :D


BlueSkiLLz

Question

5 answers to this question

Recommended Posts

Foloseste strcat: http://wiki.sa-mp.com/wiki/Strcat

Exemplu:

- nu Merge:

[pawn]ShowPlayerDialog(playerid, DIALOG_ID, DIALOG_STYLE_MSGBOX, "Nu merge:", "dsjasadjksadasdasdksadksadkjasjdsasadaskdjkasdjaksdsadjasldasjlsaddjsdsadasdklsadlksad;lkas;laskldlkdsalksadlksdaklasdklsadklsadklsadklsadklsakdlklsdaklsadklsadklsadklsdaklasdkl;dsakasdklsadkasdklkl;sadlk;asdlkasdasdasdk;lasd", "Stiu", "Nu stiu");[/pawn]

- asa merge:

[pawn]new bigstring[ 2048 ];

strcat(bigstring, "dsjasadjksadasdasdksadksadkjasjkdjkasdjaksdsadjasldasjls", 1024);

strcat(bigstring, "sldasjlsaddjsdsadasdklsadlksad;lkas;laskldlkdsalksadlksdakla", 1024);

strcat(bigstring, "sdklsadklsadklsadklsadklsakdlklsdaklsadklsadklsadklsdak", 1024);

strcat(bigstring, "lasdkl;dsakasdklsadkasdklkl;sadlk;asdlkasdasdasdk;lasd", 1024);

ShowPlayerDialog(playerid, DIALOG_ID, DIALOG_STYLE_MSGBOX, "Merge:", bigstring, "Yeee", "");[/pawn]

bigstring - 2048 ala difera, ala e numarul de caractere din string.

Link to comment
Share on other sites

stuntman-=!!" post="70701" timestamp="1304619080"]

Foloseste strcat: http://wiki.sa-mp.com/wiki/Strcat

Exemplu:

- nu Merge:

[pawn]ShowPlayerDialog(playerid, DIALOG_ID, DIALOG_STYLE_MSGBOX, "Nu merge:", "dsjasadjksadasdasdksadksadkjasjdsasadaskdjkasdjaksdsadjasldasjlsaddjsdsadasdklsadlksad;lkas;laskldlkdsalksadlksdaklasdklsadklsadklsadklsadklsakdlklsdaklsadklsadklsadklsdaklasdkl;dsakasdklsadkasdklkl;sadlk;asdlkasdasdasdk;lasd", "Stiu", "Nu stiu");[/pawn]

- asa merge:

[pawn]new bigstring[ 2048 ];

strcat(bigstring, "dsjasadjksadasdasdksadksadkjasjkdjkasdjaksdsadjasldasjls", 1024);

strcat(bigstring, "sldasjlsaddjsdsadasdklsadlksad;lkas;laskldlkdsalksadlksdakla", 1024);

strcat(bigstring, "sdklsadklsadklsadklsadklsakdlklsdaklsadklsadklsadklsdak", 1024);

strcat(bigstring, "lasdkl;dsakasdklsadkasdklkl;sadlk;asdlkasdasdasdk;lasd", 1024);

ShowPlayerDialog(playerid, DIALOG_ID, DIALOG_STYLE_MSGBOX, "Merge:", bigstring, "Yeee", "");[/pawn]

bigstring - 2048 ala difera, ala e numarul de caractere din string.

D:\G@MES (Lucianâ„¢)\GTA San Andreas\LS Gang War\gamemodes\[LS]GangWar.pwn(1897) : error 010: invalid function or declaration

D:\G@MES (Lucianâ„¢)\GTA San Andreas\LS Gang War\gamemodes\[LS]GangWar.pwn(1900) : error 021: symbol already defined: "strcat"

D:\G@MES (Lucianâ„¢)\GTA San Andreas\LS Gang War\gamemodes\[LS]GangWar.pwn(2946) : warning 203: symbol is never used: "bigstring"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

2 Errors.

[pawn]

if(strcmp(cmdtext, "/help", true) == 0)

{

new bigstring[ 2048 ];

strcat(bigstring, "This is a Team Death Match gamemode where you can kill players to receive money and points.", 1024);

strcat(bigstring, "You can take over turfs with your team. Type /turfhelp for more info.", 1024);

strcat(bigstring, "You can purchase weapons in the ammunation that you will have every time you spawn.", 1024);

strcat(bigstring, "See a rulebreaker? Use /report <id> <reason>. And see your teams stats: /teamstats (teamid)", 1024);

strcat(bigstring, "You can see the server rules under /rules. Type ! [message] to talk in teamchat.", 1024);

strcat(bigstring, "You not visited our site? Visit now: www.grove4life.smffy.com", 1024);

strcat(bigstring, "Buy a VIP Account Today! For access lot of new features!", 1024);

strcat(bigstring, "Type /cmds for a full list of commands.", 1024);

ShowPlayerDialog(playerid, DIALOG_ID, DIALOG_STYLE_MSGBOX, "[LS]Gang-War Help:", bigstring, "OK", "");

[/pawn]

Link to comment
Share on other sites

D:\G@MES (Lucianâ„¢)\GTA San Andreas\LS Gang War\gamemodes\[LS]GangWar.pwn(1897) : error 010: invalid function or declaration

D:\G@MES (Lucianâ„¢)\GTA San Andreas\LS Gang War\gamemodes\[LS]GangWar.pwn(1900) : error 021: symbol already defined: "strcat"

D:\G@MES (Lucianâ„¢)\GTA San Andreas\LS Gang War\gamemodes\[LS]GangWar.pwn(2946) : warning 203: symbol is never used: "bigstring"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

2 Errors.

[pawn]

if(strcmp(cmdtext, "/help", true) == 0)

{

new bigstring[ 2048 ];

strcat(bigstring, "This is a Team Death Match gamemode where you can kill players to receive money and points.", 1024);

strcat(bigstring, "You can take over turfs with your team. Type /turfhelp for more info.", 1024);

strcat(bigstring, "You can purchase weapons in the ammunation that you will have every time you spawn.", 1024);

strcat(bigstring, "See a rulebreaker? Use /report <id> <reason>. And see your teams stats: /teamstats (teamid)", 1024);

strcat(bigstring, "You can see the server rules under /rules. Type ! [message] to talk in teamchat.", 1024);

strcat(bigstring, "You not visited our site? Visit now: www.grove4life.smffy.com", 1024);

strcat(bigstring, "Buy a VIP Account Today! For access lot of new features!", 1024);

strcat(bigstring, "Type /cmds for a full list of commands.", 1024);

ShowPlayerDialog(playerid, DIALOG_ID, DIALOG_STYLE_MSGBOX, "[LS]Gang-War Help:", bigstring, "OK", "");

[/pawn]

Incearca asa

[pawn] 

new string[1024];

if(strcmp(cmdtext, "/teles", true) == 0)

{

      strcat(string,"Aici scri ce vrei tu ");

      strcat(string,"Aici scri ce vrei tu ");

      strcat(string,"Aici scri ce vrei tu ");

      strcat(string,"Aici scri ce vrei tu ");

      strcat(string,"Aici scri ce vrei tu ");

      strcat(string,"Aici scri ce vrei tu ");

      strcat(string,"Aici scri ce vrei tu ");

      ShowPlayerDialog(playerid,JFS_OWNA,DIALOG_STYLE_LIST,"Cevrei tu ",string,"Select","Cancel");

  return 1;

}[/pawn]

Link to comment
Share on other sites

D:\G@MES(~1\GTASAN~1\LSGANG~1\pawno\include\Dini.inc(239) : warning 219: local variable "string" shadows a variable at a preceding level
D:\G@MES(~1\GTASAN~1\LSGANG~1\pawno\include\sscanf.inc(3) : warning 219: local variable "string" shadows a variable at a preceding level
D:\G@MES (Lucianâ„¢)\GTA San Andreas\LS Gang War\gamemodes\[LS]GangWar.pwn(1014) : warning 219: local variable "string" shadows a variable at a preceding level
D:\G@MES (Lucianâ„¢)\GTA San Andreas\LS Gang War\gamemodes\[LS]GangWar.pwn(1290) : warning 219: local variable "string" shadows a variable at a preceding level
D:\G@MES (Lucianâ„¢)\GTA San Andreas\LS Gang War\gamemodes\[LS]GangWar.pwn(1545) : warning 219: local variable "string" shadows a variable at a preceding level
D:\G@MES (Lucianâ„¢)\GTA San Andreas\LS Gang War\gamemodes\[LS]GangWar.pwn(1897) : error 010: invalid function or declaration
D:\G@MES (Lucianâ„¢)\GTA San Andreas\LS Gang War\gamemodes\[LS]GangWar.pwn(1908) : error 010: invalid function or declaration
D:\G@MES (Lucianâ„¢)\GTA San Andreas\LS Gang War\gamemodes\[LS]GangWar.pwn(1988) : warning 219: local variable "string" shadows a variable at a preceding level
D:\G@MES (Lucianâ„¢)\GTA San Andreas\LS Gang War\gamemodes\[LS]GangWar.pwn(1999) : warning 219: local variable "string" shadows a variable at a preceding level
D:\G@MES (Lucianâ„¢)\GTA San Andreas\LS Gang War\gamemodes\[LS]GangWar.pwn(2039) : warning 219: local variable "string" shadows a variable at a preceding level
D:\G@MES (Lucianâ„¢)\GTA San Andreas\LS Gang War\gamemodes\[LS]GangWar.pwn(2057) : warning 219: local variable "string" shadows a variable at a preceding level
D:\G@MES (Lucianâ„¢)\GTA San Andreas\LS Gang War\gamemodes\[LS]GangWar.pwn(2108) : warning 219: local variable "string" shadows a variable at a preceding level
D:\G@MES (Lucianâ„¢)\GTA San Andreas\LS Gang War\gamemodes\[LS]GangWar.pwn(2233) : warning 219: local variable "string" shadows a variable at a preceding level
D:\G@MES (Lucianâ„¢)\GTA San Andreas\LS Gang War\gamemodes\[LS]GangWar.pwn(2251) : warning 219: local variable "string" shadows a variable at a preceding level
D:\G@MES (Lucianâ„¢)\GTA San Andreas\LS Gang War\gamemodes\[LS]GangWar.pwn(2268) : warning 219: local variable "string" shadows a variable at a preceding level
D:\G@MES (Lucianâ„¢)\GTA San Andreas\LS Gang War\gamemodes\[LS]GangWar.pwn(2287) : warning 219: local variable "string" shadows a variable at a preceding level
D:\G@MES (Lucianâ„¢)\GTA San Andreas\LS Gang War\gamemodes\[LS]GangWar.pwn(2301) : warning 219: local variable "string" shadows a variable at a preceding level
D:\G@MES (Lucianâ„¢)\GTA San Andreas\LS Gang War\gamemodes\[LS]GangWar.pwn(2321) : warning 219: local variable "string" shadows a variable at a preceding level
D:\G@MES (Lucianâ„¢)\GTA San Andreas\LS Gang War\gamemodes\[LS]GangWar.pwn(2328) : warning 219: local variable "string" shadows a variable at a preceding level
D:\G@MES (Lucianâ„¢)\GTA San Andreas\LS Gang War\gamemodes\[LS]GangWar.pwn(2335) : warning 219: local variable "string" shadows a variable at a preceding level
D:\G@MES (Lucianâ„¢)\GTA San Andreas\LS Gang War\gamemodes\[LS]GangWar.pwn(2525) : warning 219: local variable "string" shadows a variable at a preceding level
D:\G@MES (Lucianâ„¢)\GTA San Andreas\LS Gang War\gamemodes\[LS]GangWar.pwn(2560) : warning 219: local variable "string" shadows a variable at a preceding level
D:\G@MES (Lucianâ„¢)\GTA San Andreas\LS Gang War\gamemodes\[LS]GangWar.pwn(2947) : warning 203: symbol is never used: "string"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.

Ce are oare

[pawn]

new string[1024];

if(strcmp(cmdtext, "/help", true) == 0)

{

      strcat(string,"This is a Team Death Match gamemode where you can kill players to receive money and points.");

      strcat(string,"You can take over turfs with your team. Type /turfhelp for more info.");

      strcat(string,"You can purchase weapons in the ammunation that you will have every time you spawn.");

      strcat(string,"See a rulebreaker? Use /report <id> <reason>. And see your teams stats: /teamstats (teamid).");

      strcat(string,"You can see the server rules under /rules. Type ! [message] to talk in teamchat.");

      strcat(string,"You not visited our site? Visit now: www.grove4life.smffy.com");

      strcat(string,"Buy a VIP Account Today! For access lot of new features!");

      strcat(string,"Type /cmds for a full list of commands.");

  ShowPlayerDialog(playerid,JFS_OWNA,DIALOG_STYLE_MSGBOX,"[LS]Gang-War Help:",string,"Select","Cancel");

  return 1;

}

[/pawn]

Link to comment
Share on other sites

incearca :

       

 if(strcmp(cmdtext, "/help", true) == 0)
    {
       if(IsPlayerConnected(playerid))
	    {
       new string[1024];
       strcat[] = "This is a Team Death Match gamemode where you can kill players to receive money and points.";
       strcat1[] = "You can take over turfs with your team. Type /turfhelp for more info.";
       strcat2[] = "You can purchase weapons in the ammunation that you will have every time you spawn.";
       strcat3[] = string,"See a rulebreaker? Use /report <id> <reason>. And see your teams stats: /teamstats (teamid).";
       strcat4[] = string,"You can see the server rules under /rules. Type ! [message] to talk in teamchat.";
       strcat5[] = string,"You not visited our site? Visit now: www.grove4life.smffy.com";
       strcat6[] = string,"Buy a VIP Account Today! For access lot of new features!";
       strcat7[] = string,"Type /cmds for a full list of commands.";
format(string,sizeof(string),"%s%s%s%s%s%s%s%s",strcat,strcat1,strcat2,strcat3,strcat4,strcat5,strcat6,strcat7);
	   ShowPlayerDialog(playerid,JFS_OWNA,DIALOG_STYLE_MSGBOX,"[LS]Gang-War Help:",string,"Select","Cancel";
	   return 1;
	}

Eu asa le fac pe toate si imi merg perfect.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.