if(strcmp(cmdtext, "/aderby", true) == 0) { if (!IsPlayerAdmin(playerid)) SendClientMessage(playerid,0x00FF00AA, "You started a Derby Event"); SendClientMessageToAll(0xDEEE20FF, " You have 1:30 minutes to join Derby ! [ /derby ] "); JoinDerby[playerid]=true; }else{ SendClientMessage(playerid, COLOR_RED, "You are not an Admin!!"); } return 1; } return 0; // This is the line with the Error }
C:\DOKUME~1\Pepe\Desktop\gangwars.pwn(1537) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
Originally Posted by ʎʇʇnןʞ
Remove it.
|
Originally Posted by Benjo
You're missing an open-squiggly-bracket after the second IF statement.
|
Originally Posted by pıʞoɹʎd
Quote:
|
if(strcmp(cmdtext, "/aderby", true) == 0) { if (IsPlayerAdmin(playerid)) { SendClientMessage(playerid,0x00FF00AA, "You started a Derby Event"); SendClientMessageToAll(0xDEEE20FF, " You have 1:30 minutes to join Derby ! [ /derby ] "); JoinDerby[playerid]=true; }else{ SendClientMessage(playerid, COLOR_RED, "You are not an Admin!!"); } return 1; }
if(!strcmp(cmdtext, "/aderby", true))
{
if (IsPlayerAdmin(playerid))
{
SendClientMessage(playerid,0x00FF00AA, "You started a Derby Event");
SendClientMessageToAll(0xDEEE20FF, " You have 1:30 minutes to join Derby ! [ /derby ] ");
return JoinDerby[playerid]=true;
}
return SendClientMessage(playerid, COLOR_RED, "You are not an Admin!!");
}