02.10.2013, 04:24
Estou quebrando a cabeзa pra resolver esses erros ._.'
Mais nгo consegui, Sei que deveria tentar,tentar ate resolver mais estou ficando nervoso jб...
Erros:
Mais nгo consegui, Sei que deveria tentar,tentar ate resolver mais estou ficando nervoso jб...
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if( !strcmp( cmdtext, "/curas", true ))
{
ShowPlayerDialog(playerid, 7954, DIALOG_STYLE_LIST, "Hospital Sгo Magno","Cura - 30% - Preзo: R$500\nCura - 50% - Preзo: R$700\nCura - 80% - Preзo: R$800\nCura - 100% - Preзo: R$1000","Comprar","Fechar");
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])]
{
if(dialogid == 7954)
{
if(response)
{
if(listitem == 0)
{
SetPlayerHealth(playerid, 30.0);
GivePlayerMoney(playerid, -500);
SendClientMessage( playerid, 0x00FF00FF, "[ > ] Vocк comprou 30% de life, Portando vocк se recuperou!" );
return true;
}
if(listitem == 1)
{
SetPlayerHealth(playerid, 50.0);
GivePlayerMoney(playerid, -700);
SendClientMessage( playerid, 0x00FF00FF, "[ > ] Vocк comprou 50% de life, Portando vocк se recuperou!" );
return true;
}
if(listitem == 2)
{
SetPlayerHealth(playerid, 80.0);
GivePlayerMoney(playerid, -800);
SendClientMessage( playerid, 0x00FF00FF, "[ > ] Vocк comprou 80% de life, Portando vocк se recuperou!" );
return true;
}
if(listitem == 3)
{
SetPlayerHealth(playerid, 100.0);
GivePlayerMoney(playerid, -1000);
SendClientMessage( playerid, 0x00FF00FF, "[ > ] Vocк comprou 100% de life, Portando vocк se recuperou!" );
return true;
}
return true;
}
return true;
}
return true;
}
pawn Код:
C:\Users\--------------\Desktop\Server DM\filterscripts\Hospital.pwn(130) : warning 217: loose indentation
C:\Users\-------------\Desktop\Server DM\filterscripts\Hospital.pwn(130) : error 029: invalid expression, assumed zero
C:\Users\--------------\Desktop\Server DM\filterscripts\Hospital.pwn(130) : error 004: function "OnDialogResponse" is not implemented
C:\Users\--------------\Desktop\Server DM\filterscripts\Hospital.pwn(130) : error 029: invalid expression, assumed zero
C:\Users\---------------\Desktop\Server DM\filterscripts\Hospital.pwn(130) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.