[PEDIDO] 13 errors
#10

Use assim:

PHP код:
#include <a_samp>
new ADMIN[MAX_PLAYERS];
public 
OnPlayerCommandText(playeridcmdtext[])
{
    if(
strcmp("/souadm"cmdtexttrue) == 0)
    {
        if(
ADMIN[playerid] == 5)
        {
            print(
"Sou adm lvl 5");
            return 
1;
        }
        else if(
ADMIN[playerid] == 4)
        {
            print(
"Sou adm lvl 4");
            return 
1;
        }
           else if(
ADMIN[playerid] == 3)
        {
             print(
"Sou adm lvl 3");
             return 
1;
        }
         else if(
ADMIN[playerid] == 2)
        {
                print(
"Sou adm lvl 2");
            return 
1;
        }
        else if(
ADMIN[playerid] == 1)
           {
            print(
"Sou adm lvl 1");
            return 
1;
        }
        else if(
ADMIN[playerid] == 0)
        {
            print(
"Nгo sou adm");
            return 
1;
        }
    }
    return 
0;

Faltaram algumas coisas simples como
PHP код:
; () {} if else if 
e alguns parвmetros do strcmp.
Nгo cheguei a testar o cmd, mas, compilou normal aqui, e pelo que vejo estб funcional.
Reply


Messages In This Thread
[PEDIDO] 13 errors - by URSS_Morelli - 07.08.2011, 19:45
Re: [PEDIDO] 13 errors - by histire - 07.08.2011, 19:48
Re: [PEDIDO] 13 errors - by URSS_Morelli - 07.08.2011, 19:50
Re: [PEDIDO] 13 errors - by RockFire - 07.08.2011, 19:53
Re: [PEDIDO] 13 errors - by histire - 07.08.2011, 19:53
Re: [PEDIDO] 13 errors - by URSS_Morelli - 07.08.2011, 19:59
Re: [PEDIDO] 13 errors - by [S]trong - 07.08.2011, 20:03
Re: [PEDIDO] 13 errors - by histire - 07.08.2011, 20:04
Re: [PEDIDO] 13 errors - by Josma_cmd - 07.08.2011, 20:04
Re: [PEDIDO] 13 errors - by DreeH - 07.08.2011, 20:10

Forum Jump:


Users browsing this thread: 1 Guest(s)