11.10.2013, 22:35
Hello
i made a commands for regular players only and i get this error when i already forward it
this is the code itself
Here is the error:
i made a commands for regular players only and i get this error when i already forward it
this is the code itself
pawn Код:
CMD:rc(playerid,params[])
{
new string[128];
if(GetPVarInt(playerid, "Spawned") != 1)
{
SendClientMessage(playerid,COLOR_ERROR,"You must be alive and spawned in order to be able to use this command.");
return 1;
}
if(pInfo[playerid][Regularlevel] != 1);
{
SendClientMessage(playerid,COLOR_ERROR,"Only Regular Players can use the Regular Player chat to talk.");
return 1;
}
if(!strlen(params))
{
SendClientMessage(playerid,COLOR_ERROR,"USAGE: /rc (Message)");
return 1;
}
format(string,sizeof(string),"[REGULAR CHAT] %s(%d): %s",GetName(playerid),playerid,params);
SendClientMessageToAllRegulars(string);
return 1;
}
Код:
C:\Program Files (x86)\Microsoft Power\GTA San Andreas\TeamDeathMatch\gamemodes\CNR.pwn(1185) : error 036: empty statement C:\Program Files (x86)\Microsoft Power\GTA San Andreas\TeamDeathMatch\gamemodes\CNR.pwn(1190) : warning 225: unreachable code C:\Program Files (x86)\Microsoft Power\GTA San Andreas\TeamDeathMatch\gamemodes\CNR.pwn(1196) : error 017: undefined symbol "SendClientMessageToAllRegulars" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.