30.07.2015, 18:17
pawn Код:
C:\Users\Artur\Downloads\PZGRP\gamemodes\HSRP.pwn(67585) : error 029: invalid expression, assumed zero
C:\Users\Artur\Downloads\PZGRP\gamemodes\HSRP.pwn(67585) : warning 215: expression has no effect
C:\Users\Artur\Downloads\PZGRP\gamemodes\HSRP.pwn(67587) : error 014: invalid statement; not in switch
C:\Users\Artur\Downloads\PZGRP\gamemodes\HSRP.pwn(67587) : warning 215: expression has no effect
C:\Users\Artur\Downloads\PZGRP\gamemodes\HSRP.pwn(67596) : error 014: invalid statement; not in switch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
pawn Код:
CMD:pu(playerid,params[])
{
if (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 ||
PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 ||
{
switch(pTrack[playerid];
{
case INVALID_PLAYER_ID;
{
new id;
if(sscanf(params,"u",id)) return SendClientMessage(playerid,-1,"/c20 [playerid]");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid,-1,"Invalid playerid");
pTrack[playerid] = id;
pTrackTimer[playerid] = SetTimerEx("TrackTimer",1000,1,"i",playerid);
}
default
{
pTrack[playerid] = INVALID_PLAYER_ID;
KillTimer(pTrackTimer[playerid]);
DisablePlayerCheckpoint(playerid);
}
}
return 1;
}
public TrackTimer(playerid)
{
new Float:pos[3];
GetPlayerPos(pTrack[playerid],pos[0],pos[1],pos[2]);
SetPlayerCheckpoint(playerid,pos[0],pos[1],pos[2],4.0);
return 1;
}
pawn Код:
switch(pTrack[playerid];
pawn Код:
case INVALID_PLAYER_ID;
pawn Код:
new id;