[DUV] Creditos
#10

Quote:
Originally Posted by Canabis
Посмотреть сообщение
pawn Код:
if (strcmp("/ligar", cmdtext, true)==0)
{
    if(Creditos[playerid] <= 0) ( SendClientMessage(playerid, COR_VERDE, "Vocк nгo tem Crйditos!"); return 1; )
    SendClientMessage(playerid, COR_VERDE, "єєCrйditosєє");
    SendClientMessage(playerid, COR_VERDE, "Gasto 1 Crйdito");
    Creditos[playerid]-=1;
    return 1;
}
Tem coisa errada nesse cуdigo aн, os '(' ')' nгo servem para fechar ou abrir publics, o correto sгo as chaves '{' '}'.
pawn Код:
if(strcmp(cmd, "/ligar", true) == 0)
{
     if(Creditos[playerid] <= 0) return SendClientMessage(playerid, COR_VERDE, "Vocк nгo tem crйditos. Compre mais em tal lugar.");
     else // ao contrбrio, se tiver crйditos
     {
          //funзгo de telefonar
     }
}
Reply


Messages In This Thread
[DUV] Creditos - by irffri - 28.07.2010, 18:18
Re: [DUV] Creditos - by Pedro K - 28.07.2010, 20:05
Re: [DUV] Creditos - by zSuYaNw - 28.07.2010, 20:15
Re: [DUV] Creditos - by [BEP]AcerPilot - 28.07.2010, 21:05
Re: [DUV] Creditos - by Pedro K - 28.07.2010, 21:06
Re: [DUV] Creditos - by ipsBruno - 29.07.2010, 00:06
Re: [DUV] Creditos - by [BEP]AcerPilot - 29.07.2010, 03:53
Re: [DUV] Creditos - by irffri - 29.07.2010, 04:35
Re: [DUV] Creditos - by Canabis - 29.07.2010, 08:44
Re: [DUV] Creditos - by [BEP]AcerPilot - 29.07.2010, 09:58

Forum Jump:


Users browsing this thread: 3 Guest(s)