UFE (Unidentified Flying Error) -_-
#1

Hello guys. I made a Dialog response, but for some reason it won't compile, and i dont know why.
Here's the errors and the response:

Response
Код:
        
        case DIALOG_ROLEPLAY:
        (
            if ( !response ) return Kick(playerid); // Pressing ESC
            if(response) // Double-Clicked, or "OK"
			{
            if(listitem == 0) // Mind Gaming (Wrong)
            {
                SendClientMessage(playerid,0xFFFFFF,"You have been kicked from the server. Reason: Wrong answer (Roleplay Quiz).");
                Kick(playerid);
            }
            if(listitem == 1) // Meta Gaming (Correct)
            {
                SendClientMessage(playerid,0xFFFFFF,"Correct answer! Continuing to next question...");
            }
            if(listitem == 2) // Mood Gaming (Wrong)
            {
                SendClientMessage(playerid,0xFFFFFF,"You have been kicked from the server. Reason: Wrong answer (Roleplay Quiz).");
                Kick(playerid);
            }
	}
Errors
Код:
C:\Documents and Settings\Fabian\My Documents\GTA SA Server\pawno\include\YSI\internal\y_dohooks.inc(2572) : warning 235: public function lacks forward declaration (symbol "OnUnoccupiedVehicleUpdate")
C:\Documents and Settings\Fabian\My Documents\Server\pawno\include\YSI\internal\y_dohooks.inc(3432) : warning 235: public function lacks forward declaration (symbol "OnPlayerTakeDamage")
C:\Documents and Settings\Fabian\My Documents\Server\pawno\include\YSI\internal\y_dohooks.inc(3501) : warning 235: public function lacks forward declaration (symbol "OnPlayerGiveDamage")
C:\Documents and Settings\Fabian\My Documents\Server\gamemodes\v8.pwn(194) : warning 224: indeterminate array size in "sizeof" expression (symbol "")
C:\Documents and Settings\Fabian\My Documents\Server\gamemodes\v8.pwn(454 -- 455) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Fabian\My Documents\Server\gamemodes\v8.pwn(455) : warning 215: expression has no effect
C:\Documents and Settings\Fabian\My Documents\Server\gamemodes\v8.pwn(455) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Fabian\My Documents\Server\gamemodes\v8.pwn(455) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Fabian\My Documents\Server\gamemodes\v8.pwn(455) : fatal error 107: too many error messages on one line

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


4 Errors.
Greetz, CrazyManiac.
Reply
#2

Код:
        
        case DIALOG_ROLEPLAY:
        (
            if ( !response ) return Kick(playerid); // Pressing ESC
            if(response) // Double-Clicked, or "OK"
			{
            if(listitem == 0) // Mind Gaming (Wrong)
            {
                SendClientMessage(playerid,0xFFFFFF,"You have been kicked from the server. Reason: Wrong answer (Roleplay Quiz).");
                Kick(playerid);
            }
            else if(listitem == 1) // Meta Gaming (Correct)
            {
                SendClientMessage(playerid,0xFFFFFF,"Correct answer! Continuing to next question...");
            }
            else if(listitem == 2) // Mood Gaming (Wrong)
            {
                SendClientMessage(playerid,0xFFFFFF,"You have been kicked from the server. Reason: Wrong answer (Roleplay Quiz).");
                Kick(playerid);
            }
	}
and the upper warnings are there because of i think some more logical fault in your script
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)