SA-MP Forums Archive
ErroR GM Please Help - 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: ErroR GM Please Help (/showthread.php?tid=127573)



ErroR GM Please Help - LooLz - 13.02.2010

Код:
864  new ShowPlayerDialog(playerid, dialogid, style, caption[], info[], button1[], button2[])
865
866	if(!strcmp(cmdtext, "/help", true))
	{
  ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Help","Commands (/cmdstext)\nTeleprts (/teles)\nRules (/rules)\nCredits ( /credits )\nTeleportation by menu (/teleM)","Ok","Close");
  return 1;
	}
	{
  ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Help2","Ajutor","Comenzi (/helptext)\nTeleportari (/teles)\nRegulament (/rules)\nCreatori ( /credits )\nTeleportari prin meniuri (/teleM)","Ok","Iesire");
  return 1;
	}
  
	if(!strcmp(cmdtext, "/myskin", true))
	{
  	 ShowPlayerDialog(playerid, Dialog_Skins, 2, "Skins","Gangstar\nPublic Services\nGIRLS\nSpecific Skins\nNormal Skins\nOther Skins","Select","Cancel");
  	 return 1;
	}
Код:
C:\Documents and Settings\CyBeR.AE436CA18F9D482\Desktop\RO.pwn(864) : warning 219: local variable "ShowPlayerDialog" shadows a variable at a preceding level
C:\Documents and Settings\CyBeR.\Desktop\GM.pwn(864) : error 001: expected token: ";", but found "("
C:\Documents and Settings\CyBeR.\Desktop\GM.pwn(864) : error 017: undefined symbol "dialogid"
C:\Documents and Settings\CyBeR.\Desktop\GM.pwn(864 -- 866) : warning 215: expression has no effect
C:\Documents and Settings\CyBeR.\Desktop\GM.pwn(866) : error 001: expected token: ";", but found "if"
C:\Documents and Settings\CyBeR.\Desktop\GM.pwn(866) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Please help me ... If you can solve it you ... Pleaseeee


Re: ErroR GM Please Help - mansonh - 13.02.2010

somewhere you need to choose something for dialogid, style, caption[], info[], button1[], button2[];
Not sure what you were using new for, and you need a ; at the end of the line.

ShowPlayerDialog(playerid, dialogid, style, caption[], info[], button1[], button2[]);

I suggest doing a tutorial:
Tutorial -> How to make a dialog