Dialog Problem
#1

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?
Reply
#2

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)
Reply
#3

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

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]
Reply
#5

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

#define SVRRULES 1 // Number
Reply
#7

Thanks man you fixed it.
Reply
#8

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


Forum Jump:


Users browsing this thread: 1 Guest(s)