D:\Users\Darth\Downloads\Server Samp\gamemodes\baron.pwn(2794) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[], classid)
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
Nгo existe o parametro classid na callback OnDialogResponse
PHP код:
|
onde esse classid esta sendo chamado ? Mostre um pedaзo do cуdigo
|
if(dialogid == DIALOG_SAPW)
{
if(!response)
{
sSpawn[playerid] = true;
jaspawnou[playerid] = false;
SetPVarInt(playerid,"Escolhendo_Classe",1);
TextDrawHideForPlayer(playerid, _IfemCloseFile);
TextDrawHideForPlayer(playerid, _IfemCloseLog);
TextDrawHideForPlayer(playerid, _IfemCloseName);
TextDrawHideForPlayer(playerid, _IfemCloseVersion);
TextDrawShowForPlayer(playerid, ProfsTextD[playerid]);
switch (classid)
{
case 0, 1, 2, 3, 4, 5, 6, 7:
{
if (APlayerData[playerid][Sexo] == 0)
{
TextDrawSetString(ProfsTextD[playerid], "CAMINHONEIRO");
UpdatePlayer3DTextLabelText(playerid, DDClass, 0xFF950AFF, "Caminhoneiro");
}
if (APlayerData[playerid][Sexo] == 1)
{
TextDrawSetString(ProfsTextD[playerid], "CAMINHONEIRO");
UpdatePlayer3DTextLabelText(playerid, DDClass, 0xFF950AFF, "Caminhoneiro");
}
if (APlayerData[playerid][Sexo] == 2)
{
TextDrawSetString(ProfsTextD[playerid], "CAMINHONEIRA");
UpdatePlayer3DTextLabelText(playerid, DDClass, 0xFF950AFF, "Caminhoneira");
}
APlayerData[playerid][PlayerClass] = ClassTruckDriver;
}