15.04.2017, 15:01
i compile the code and i get the error
the error
PHP Code:
Dialog:RandomDM(playerid, response, listitem, inputtext[])
{
new string[128], playerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, playerName, sizeof(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(string, sizeof(string), "{77B3D9}[DM Zones] {ffffff}%s(%i) has just entered {77B3D9}DM zone %i {ffffff}(/dm)", playerName, playerid, DM[playerid]);
SendClientMessageToAll(-1, string);
return 1;
}
} //error code
return 0;//error code
}
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. |