C:\Documents and Settings\Rafael Morelli\Desktop\[FS]SouADM.pwn(5) : error 010: invalid function or declaration
C:\Documents and Settings\Rafael Morelli\Desktop\[FS]SouADM.pwn(7) : error 010: invalid function or declaration
C:\Documents and Settings\Rafael Morelli\Desktop\[FS]SouADM.pwn(10) : error 010: invalid function or declaration
C:\Documents and Settings\Rafael Morelli\Desktop\[FS]SouADM.pwn(12) : error 010: invalid function or declaration
C:\Documents and Settings\Rafael Morelli\Desktop\[FS]SouADM.pwn(15) : error 010: invalid function or declaration
C:\Documents and Settings\Rafael Morelli\Desktop\[FS]SouADM.pwn(17) : error 010: invalid function or declaration
C:\Documents and Settings\Rafael Morelli\Desktop\[FS]SouADM.pwn(20) : error 010: invalid function or declaration
C:\Documents and Settings\Rafael Morelli\Desktop\[FS]SouADM.pwn(22) : error 010: invalid function or declaration
C:\Documents and Settings\Rafael Morelli\Desktop\[FS]SouADM.pwn(25) : error 010: invalid function or declaration
C:\Documents and Settings\Rafael Morelli\Desktop\[FS]SouADM.pwn(27) : error 010: invalid function or declaration
C:\Documents and Settings\Rafael Morelli\Desktop\[FS]SouADM.pwn(30) : error 010: invalid function or declaration
C:\Documents and Settings\Rafael Morelli\Desktop\[FS]SouADM.pwn(32) : error 010: invalid function or declaration
C:\Documents and Settings\Rafael Morelli\Desktop\[FS]SouADM.pwn(35) : error 010: invalid function or declaration
C:\Documents and Settings\Rafael Morelli\Desktop\[FS]SouADM.pwn(38) : warning 203: symbol is never used: "ADMIN"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
13 Errors.
#include <a_samp>
new ADMIN[MAX_PLAYERS];
if(strcmp("/souadm",cmdtext,true,8)
{
else 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
}
}
if(!strcmp("/souadm",cmdtext,true))
{
switch(ADMIN[playerid])
{
case 5:
{
print("Sou adm lvl 5");
}
case 4:
{
print("Sou adm lvl 4");
}
case 3:
{
print("Sou adm lvl 3");
}
case 2:
{
print("Sou adm lvl 2");
}
case 1:
{
print("Sou adm lvl 1");
}
case 0:
{
print("Nгo sou adm");
}
}
return 1;
}
if(strcmp("/souadm",cmdtext,true,8)
{
new
Msg[40],
Admin = ADMIN[playerid];
Admin = ADMIN[playerid] > 0 ? (format(Msg,sizeof(Msg),"Sou Admin Level %i",ADMIN[playerid])) : (format(Msg,sizeof(Msg),"Nгo sou admin"));
print(Msg);
#pragma unused Admin
return true;
}
#include <a_samp>
new ADMIN[MAX_PLAYERS];
if(strcmp("/souadm",cmdtext,true,8)
{
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 1;
}
pawn Код:
|
#include <a_samp>
new ADMIN[MAX_PLAYERS];
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/souadm", cmdtext, true) == 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;
}
; () {} if else if