ErroR GM Please Help
#1

Код:
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
Reply
#2

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)