21.04.2014, 05:18
pawn Код:
public OnPlayerCommandReceived(playerid, cmdtext[])
{
if(PlayerInfo[playerid][InDM] != 0 && PlayerInfo[playerid][pAdminLevel] < 1)
{
if(strcmp(cmdtext,"/leave") != 0 && strcmp(cmdtext,"/pm") != 0 && strcmp(cmdtext,"/report") != 0 && strcmp(cmdtext,"/irc") != 0)) //Line 1946
{
SendClientMessage(playerid,COLOR_RED,"[ERROR] "GREY"You cannot use these commands while on a DM!");
return 0;
}
}
if(PlayerInfo[playerid][InNRGParkour] != 0 || PlayerInfo[playerid][InParkour] != 0 || PlayerInfo[playerid][InBMXParkour] != 0 && PlayerInfo[playerid][pAdminLevel] < 1)
{
if(strcmp(cmdtext,"/leave") != 0 && strcmp(cmdtext,"/pm") != 0 && strcmp(cmdtext,"/report") != 0 && strcmp(cmdtext,"/irc") != 0)) //Line 1954
{
SendClientMessage(playerid,COLOR_RED,"[ERROR] "GREY"You cannot use these commands while on a parkour event!");
return 0;
}
}
if(PlayerInfo[playerid][Joined] == true && PlayerInfo[playerid][pAdminLevel] < 1)
{
if(strcmp(cmdtext,"/leaverace") != 0 && strcmp(cmdtext,"/pm") != 0 && strcmp(cmdtext,"/report") != 0 && strcmp(cmdtext,"/irc") != 0))//Line 1962
{
SendClientMessage(playerid,COLOR_RED,"[ERROR] "GREY"You cannot use these commands while on a race!");
return 0;
}
}
return 1;
}
Код:
C:\Users\Matt\Desktop\samp03z_svr_R1_win32\gamemodes\stunting.pwn(1946) : error 029: invalid expression, assumed zero C:\Users\Matt\Desktop\samp03z_svr_R1_win32\gamemodes\stunting.pwn(1954) : error 029: invalid expression, assumed zero C:\Users\Matt\Desktop\samp03z_svr_R1_win32\gamemodes\stunting.pwn(1962) : error 029: invalid expression, assumed zero Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase