SCRIPT ERROR [+rep]
#1

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;
}
LINE 67585
pawn Код:
switch(pTrack[playerid];
LINE 67587
pawn Код:
case INVALID_PLAYER_ID;
LINE 67589
pawn Код:
new id;
Reply
#2

Removed.
Reply
#3

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(67585) : error 001: expected token: ";", but found ")"
C:\Users\Artur\Downloads\PZGRP\gamemodes\HSRP.pwn(67585) : error 029: invalid expression, assumed zero
C:\Users\Artur\Downloads\PZGRP\gamemodes\HSRP.pwn(67585) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
LINE 67585
pawn Код:
switch(pTrack[playerid])
Reply
#4

Removed.
Reply
#5

Yea it got fixed but... what the hell is this ?
Came right after i took the latest fix
pawn Код:
C:\Users\Artur\Downloads\PZGRP\gamemodes\HSRP.pwn(2978) : error 017: undefined symbol "ProxDetector"
C:\Users\Artur\Downloads\PZGRP\gamemodes\HSRP.pwn(2985) : error 017: undefined symbol "ProxDetector"
C:\Users\Artur\Downloads\PZGRP\gamemodes\HSRP.pwn(2992) : error 017: undefined symbol "ProxDetector"
C:\Users\Artur\Downloads\PZGRP\gamemodes\HSRP.pwn(3001) : error 017: undefined symbol "ProxDetector"
C:\Users\Artur\Downloads\PZGRP\gamemodes\HSRP.pwn(3015) : error 017: undefined symbol "ProxDetector"
C:\Users\Artur\Downloads\PZGRP\gamemodes\HSRP.pwn(3022) : error 017: undefined symbol "ProxDetector"
C:\Users\Artur\Downloads\PZGRP\gamemodes\HSRP.pwn(3026) : error 017: undefined symbol "GivePlayerCash"
C:\Users\Artur\Downloads\PZGRP\gamemodes\HSRP.pwn(3029) : error 017: undefined symbol "ProxDetector"
C:\Users\Artur\Downloads\PZGRP\gamemodes\HSRP.pwn(3036) : error 017: undefined symbol "ProxDetector"
C:\Users\Artur\Downloads\PZGRP\gamemodes\HSRP.pwn(3044) : error 017: undefined symbol "GivePlayerCash"
C:\Users\Artur\Downloads\PZGRP\gamemodes\HSRP.pwn(3047) : error 017: undefined symbol "ProxDetector"
C:\Users\Artur\Downloads\PZGRP\gamemodes\HSRP.pwn(3054) : error 017: undefined symbol "ProxDetector"
C:\Users\Artur\Downloads\PZGRP\gamemodes\HSRP.pwn(3061) : error 017: undefined symbol "ProxDetector"
C:\Users\Artur\Downloads\PZGRP\gamemodes\HSRP.pwn(3075) : error 017: undefined symbol "ProxDetector"
C:\Users\Artur\Downloads\PZGRP\gamemodes\HSRP.pwn(3084) : error 017: undefined symbol "ProxDetector"
C:\Users\Artur\Downloads\PZGRP\gamemodes\HSRP.pwn(3096) : error 017: undefined symbol "ProxDetector"
C:\Users\Artur\Downloads\PZGRP\gamemodes\HSRP.pwn(3115) : error 017: undefined symbol "ProxDetector"
C:\Users\Artur\Downloads\PZGRP\gamemodes\HSRP.pwn(3129) : error 017: undefined symbol "ProxDetector"
C:\Users\Artur\Downloads\PZGRP\gamemodes\HSRP.pwn(3143) : error 017: undefined symbol "ProxDetector"
C:\Users\Artur\Downloads\PZGRP\gamemodes\HSRP.pwn(3151) : error 017: undefined symbol "GivePlayerCash"
C:\Users\Artur\Downloads\PZGRP\gamemodes\HSRP.pwn(3156) : error 017: undefined symbol "ProxDetector"
C:\Users\Artur\Downloads\PZGRP\gamemodes\HSRP.pwn(3324) : error 017: undefined symbol "GivePlayerCash"
C:\Users\Artur\Downloads\PZGRP\gamemodes\HSRP.pwn(3582) : error 017: undefined symbol "GivePlayerCash"
C:\Users\Artur\Downloads\PZGRP\gamemodes\HSRP.pwn(3583) : error 017: undefined symbol "GivePlayerCash"
C:\Users\Artur\Downloads\PZGRP\gamemodes\HSRP.pwn(4884) : error 017: undefined symbol "NOPCheck"
C:\Users\Artur\Downloads\PZGRP\gamemodes\HSRP.pwn(5494) : error 017: undefined symbol "NOPCheck"

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.
Reply
#6

Removed.
Reply
#7

And here it is again.
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(67585) : error 001: expected token: ";", but found ")"
C:\Users\Artur\Downloads\PZGRP\gamemodes\HSRP.pwn(67585) : error 029: invalid expression, assumed zero
C:\Users\Artur\Downloads\PZGRP\gamemodes\HSRP.pwn(67585) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
pawn Код:
switch(pTrack)
Reply
#8

Try this
PHP код:
CMD:pu(playerid,params[]){
if    (
PlayerInfo[playerid][pMember] == || PlayerInfo[playerid][pLeader] == || PlayerInfo[playerid][pMember] == || PlayerInfo[playerid][pLeader] == ||
    
PlayerInfo[playerid][pMember] == || PlayerInfo[playerid][pLeader] == 2)
    {
    switch(
pTrack)
    {
        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;

Reply
#9

Removed.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)