Pawno freezes - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Pawno freezes (
/showthread.php?tid=246275)
Pawno freezes -
[MWR]Blood - 03.04.2011
Why does my pawno freeze with this piece of code
pawn Код:
if (strcmp(cmd, "/ganghelp", true) ==0 )
{
ShowPlayerDialog(playerid,2613,0,"Gang System Help",""lblue"Create a gang: "lyellow"/gang \n"lblue"Invite a player to your gang: "lyellow"/invite <id> \n"lblue"Kick a player from your gang: "lyellow"/kickfromgang <id> \n"lblue"Type "lyellow"/promote <id> "lblue" to promote a player of your gang \nType "lyellow"/demote <id> "lblue" to demote a player of your gang \nShow your gang's stats: "lyellow"/gstats\n"lblue"See available gangs: "lyellow" /gangs\n\t"lgreen"Have fun!","OK"," ");
return 1;
}
Re: Pawno freezes -
SlashPT - 03.04.2011
you have a input line too long though...
you should divide that by multiple dialogs i think... try that
This forum requires that you wait 120 seconds between posts. Please try again in 6 seconds.
Re: Pawno freezes -
Mean - 03.04.2011
pawn Код:
if (strcmp(cmd, "/ganghelp", true) ==0 )
{
ShowPlayerDialog(playerid,2613,0,"Gang System Help",""lblue"Create a gang: "lyellow"/gang \n"lblue"Invite a player to your gang: "lyellow"/invite <id> \
\n"lblue"Kick a player from your gang: "lyellow"/kickfromgang <id> \n"lblue"Type "lyellow"/promote <id> "lblue" to promote a player of your gang \nType \
"lyellow"/demote <id> "lblue" to demote a player of your gang \nShow your gang's stats: "lyellow"/gstats\n"lblue"See available gangs: "lyellow" \
/gangs\n\t"lgreen"Have fun!","OK"," ");
return 1;
}
Making lines shorter with "\".
Re: Pawno freezes -
iggy1 - 03.04.2011
Quote:
Originally Posted by Mean
pawn Код:
if (strcmp(cmd, "/ganghelp", true) ==0 ) { ShowPlayerDialog(playerid,2613,0,"Gang System Help",""lblue"Create a gang: "lyellow"/gang \n"lblue"Invite a player to your gang: "lyellow"/invite <id> \ \n"lblue"Kick a player from your gang: "lyellow"/kickfromgang <id> \n"lblue"Type "lyellow"/promote <id> "lblue" to promote a player of your gang \nType \ "lyellow"/demote <id> "lblue" to demote a player of your gang \nShow your gang's stats: "lyellow"/gstats\n"lblue"See available gangs: "lyellow" \ /gangs\n\t"lgreen"Have fun!","OK"," "); return 1; }
Making lines shorter with "\".
|
That won't have any effect apart from make it easier to read.
BTW the code delux posted works fine with my compiler.
EDIT: No it didn't lol. It needs to be formatted.