C:\Users\NASTIE\Desktop\MX-RP\gamemodes\mexico.pwn(39015) : error 022: must be lvalue (non-constant)
C:\Users\NASTIE\Desktop\MX-RP\gamemodes\mexico.pwn(39015) : warning 215: expression has no effect
C:\Users\NASTIE\Desktop\MX-RP\gamemodes\mexico.pwn(39015) : error 001: expected token: ";", but found "-identifier-"
C:\Users\NASTIE\Desktop\MX-RP\gamemodes\mexico.pwn(39015) : error 017: undefined symbol "i"
C:\Users\NASTIE\Desktop\MX-RP\gamemodes\mexico.pwn(39015) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Quote:
Originally Posted by WackoX
What are you trying to do, a loop or a switch?
|
That is for command /news look >>
pawn Код:
if(strcmp(cmd, "/news", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9)
{
if(PlayerInfo[playerid][pMuted] == 1)
{
SendClientMessage(playerid, TEAM_CYAN_COLOR, "You are muted");
return 1;
}
new counter = 0;
for(new i = 71 || i = 72 || i = 73 || i = 117 i++))
{
new dist = CheckPlayerDistanceToVehicle(7, playerid, i);
if(dist)
{
counter++;
}
}
if(counter == 0)
{
SendClientMessage(playerid, COLOR_GREY, "You are not close to news chopper");
return 1;
}