easydialog
#1

i compile the code and i get the error

PHP Code:
Dialog:RandomDM(playeridresponselistiteminputtext[])
{
    new 
string[128], playerName[MAX_PLAYER_NAME];
    
GetPlayerName(playeridplayerNamesizeof(playerName));
    if (
response)
    {
        switch(
listitem// Check which option was chosen when they responded. We only have one for now. The next would be case 1, then case 2 and so on.
            
{
                case 
0:
                {
                    
InDM[playerid] = true;
                    
DM[playerid] = 0;
                    
SpawnPlayer(playerid);
                }
            }
            
format(stringsizeof(string), "{77B3D9}[DM Zones] {ffffff}%s(%i) has just entered {77B3D9}DM zone %i {ffffff}(/dm)"playerNameplayeridDM[playerid]);
            
SendClientMessageToAll(-1string);
            return 
1;
        }
    } 
//error code
    
return 0;//error code

the error

Quote:

C:\Users\cyber\Desktop\gta server cc bukit\gamemodes\GL.pwn(4154) : warning 209: function "dialog_RandomDM" should return a value
C:\Users\cyber\Desktop\gta server cc bukit\gamemodes\GL.pwn(4155) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

Reply


Messages In This Thread
easydialog - by crukk11 - 15.04.2017, 15:01
Re: easydialog - by AndreiWow - 15.04.2017, 15:06
Re: easydialog - by crukk11 - 15.04.2017, 15:29
Respuesta: easydialog - by Ertouq - 15.04.2017, 17:34
Re: easydialog - by Vince - 15.04.2017, 17:39
Re: easydialog - by AndreiWow - 15.04.2017, 18:11
Re: easydialog - by crukk11 - 16.04.2017, 03:28
Re: easydialog - by Logic_ - 16.04.2017, 03:35
Re: easydialog - by crukk11 - 16.04.2017, 03:38
Re: easydialog - by Logic_ - 16.04.2017, 03:42

Forum Jump:


Users browsing this thread: 1 Guest(s)