SA-MP Forums Archive
Dialog Problem - 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)
+--- Thread: Dialog Problem (/showthread.php?tid=402524)



Dialog Problem - DJTunes - 27.12.2012

So my compiler says this:
Код:
C:\Users\Zach\Documents\MW\MW.pwn(73) : warning 235: public function lacks forward declaration (symbol "SendMSG")
C:\Users\Zach\Documents\MW\MW.pwn(100) : warning 217: loose indentation
C:\Users\Zach\Documents\MW\MW.pwn(113) : warning 217: loose indentation
C:\Users\Zach\Documents\MW\MW.pwn(154) : error 029: invalid expression, assumed zero
C:\Users\Zach\Documents\MW\MW.pwn(154) : warning 215: expression has no effect
C:\Users\Zach\Documents\MW\MW.pwn(154) : warning 215: expression has no effect
C:\Users\Zach\Documents\MW\MW.pwn(154) : warning 215: expression has no effect
C:\Users\Zach\Documents\MW\MW.pwn(154) : warning 215: expression has no effect
C:\Users\Zach\Documents\MW\MW.pwn(154) : warning 215: expression has no effect
C:\Users\Zach\Documents\MW\MW.pwn(154) : error 001: expected token: ";", but found ")"
C:\Users\Zach\Documents\MW\MW.pwn(154) : error 029: invalid expression, assumed zero
C:\Users\Zach\Documents\MW\MW.pwn(154) : fatal error 107: too many error messages on one line

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


4 Errors.
I have the following on the line of the error:
Код:
	ShowPlayerDialog(playerid, SVRRULES, DIALOG_STYLE_MSGBOX, "Server Rules", "You must agree with these rules.\n1. Do not team kill\n2. Do not base rape\n3. Do not spawn kill\n4. You will respect all users\n5. You will not use any kind of hack\n6. You will not advertise anything on our server\n7. You will follow these rules, and if not get banned.", "Close", "");
When I don't define it it says "SVRRULES Undefines"
When I define it I get the errors listed above...

Here's how I defined it:
Код:
#define SVRRULES
Anyone see any mistakes?


Re: Dialog Problem - Buzzbomb - 27.12.2012

Thats Not Cause of Error Code looks fine check your other codes.. where the error being called.
Or check your line and see if its out of place... As you just showed the dialog show the full code.. from if(dialogid == Urdialogname)


Re: Dialog Problem - DJTunes - 27.12.2012

This is line 154:
Код:
TextDrawShowForPlayer(playerid, gMyText);
Mistake?


Re: Dialog Problem - Buzzbomb - 27.12.2012

Oh Shit my bad i see it now ur define for svrrules put a number at the end #define SVRRULES 1 //or what ever number u want 9999

[edited]


Re: Dialog Problem - DJTunes - 27.12.2012

I had it defined like this:
Код:
new Text:gMyText;
	new Text:MyText;



Re: Dialog Problem - Buzzbomb - 27.12.2012

#define SVRRULES 1 // Number


Re: Dialog Problem - DJTunes - 27.12.2012

Thanks man you fixed it.


Re: Dialog Problem - Buzzbomb - 27.12.2012

No problem sorry didnt reply that first like skipped right past it didnt noticed.. "Facepalm"