19.06.2014, 15:51
Erro ao compilar !
Aqui vai o comando por inteiro !
Alguйm poderia tentar arrumar esta parte do cуdigo pramin ? Jб procurei e tudo mais nгo consigo arrumar.
OBS: Se eu coloco o case 16: da centenas de erros e se eu tiro o SendClientMessage tambйm ta centenas de erros .
Quote:
D:\Users\ZЈU\Desktop\Nova pasta\filterscripts\Untitled.pwn(479) : error 002: only a single statement (or expression) can follow each "case" D:\Users\ZЈU\Desktop\Nova pasta\filterscripts\Untitled.pwn(479) : warning 215: expression has no effect Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |
pawn Код:
if(dialogid == ALUGUE)
{
if(response)
{
if(GetPlayerMoney(playerid) < 370) return SendClientMessage(playerid,COLOR_AZULCLARO,"| HOTEL | Vocк nгo tem R$370 para alugar!");
if(GetPVarInt(playerid,"Sono") >= 75) {
SendClientMessage(playerid,COLOR_AZULCLARO,"| SONO | Vocк nгo esta com sono!");
}
else
{
new alwe;
switch(alwe)
{
case 0:SetPlayerPos(playerid, 2246.4041,-1164.5934,1030.4943);
case 1:SetPlayerPos(playerid, 2252.9849,-1158.8644,1030.4410);
case 2:SetPlayerPos(playerid, 2236.0242,-1154.6893,1030.4943);
case 3:SetPlayerPos(playerid, 2229.6047,-1160.9651,1030.4410);
case 4:SetPlayerPos(playerid, 2235.9683,-1165.5596,1030.4943);
case 5:SetPlayerPos(playerid, 2230.5610,-1183.3994,1030.5249);
case 6:SetPlayerPos(playerid, 2224.5496,-1176.9550,1030.4384);
case 7:SetPlayerPos(playerid, 2204.6062,-1193.9602,1030.5249);
case 8:SetPlayerPos(playerid, 2210.6392,-1200.2861,1030.4384);
case 9:SetPlayerPos(playerid, 2230.8987,-1183.3547,1030.5249);
case 10:SetPlayerPos(playerid, 2224.0601,-1176.9796,1030.4384);
case 11:SetPlayerPos(playerid, 2198.2258,-1178.0868,1030.4943);
case 12:SetPlayerPos(playerid, 2204.8206,-1171.5645,1030.4410);
case 13:SetPlayerPos(playerid, 2187.9077,-1151.9406,1030.4943);
case 14:SetPlayerPos(playerid, 2181.5906,-1158.4785,1030.4410);
case 15:SetPlayerPos(playerid, 2217.3391,-1146.4551,1025.7969);
/*LINHA ERROR*/ SendClientMessage(playerid,COLOR_AZULCLARO, "| HOTEL | Vб para a cama e digite --> /Durmir");
}
GivePlayerMoney(playerid, -370);
return 1;
}
if(!response)
{
SendClientMessage(playerid,COLOR_AZULCLARO, "| HOTEL | Vocк optou por nгo alugar.");
}
return 1;
}
return 0;
}
OBS: Se eu coloco o case 16: da centenas de erros e se eu tiro o SendClientMessage tambйm ta centenas de erros .