Error kod auta za organizacije

Započeo SlegyCH, Mart 23, 2010, 09:42:08 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

evo to ovako izgleda kod mene :

Citatif(newcar == 11 || newcar == 10 || newcar == 9 || newcar == 8 || newcar == 7 || newcar == 6 || newcar == 5 || newcar == 4 || newcar == 3 || newcar == 2 || newcar == 1)
           {
                 if(PlayerInfo[playerid][pMember] == 8||PlayerInfo[playerid][pLeader] == 8) { }
                 else
                {
                SendClientMessage(playerid,COLOR_GREY,"   Nisi Hitman!!!Ovo mogu voziti samo Hitmani!!!");
                 RemovePlayerFromVehicle(playerid);
                }
            }


I evo errora


CitatC:\Users\Slegy\Desktop\samp03asvr_R4_win32\gamemodes\gf.pwn(3748) : error 017: undefined symbol "newcar"
C:\Users\Slegy\Desktop\samp03asvr_R4_win32\gamemodes\gf.pwn(26231) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

stavi ovako:...
new newcar = GetPlayerVehicleID(playerid);
if(newcar == 11 || newcar == 10 || newcar == 9 || newcar == 8 || newcar == 7 || newcar == 6 || newcar == 5 || newcar == 4 || newcar == 3 || newcar == 2 || newcar == 1)
           {
                 if(PlayerInfo[playerid][pMember] == 8||PlayerInfo[playerid][pLeader] == 8 { }
                 else
                {
                SendClientMessage(playerid,COLOR_GREY,"   Nisi Hitman!!!Ovo mogu voziti samo Hitmani!!!");
                 RemovePlayerFromVehicle(playerid);
                }
            }

opet ali je sada drukcije sada mi ovako izgleda :
    new newcar = GetPlayerVehicleID(playerid);
        if(newcar == 11 || newcar == 10 || newcar == 9 || newcar == 8 || newcar == 7 || newcar == 6 || newcar == 5 || newcar == 4 || newcar == 3 || newcar == 2 || newcar == 1)
                {
                         if(PlayerInfo[playerid][pMember] == 8||PlayerInfo[playerid][pLeader] == 8 { }
                         else
                         {
                         SendClientMessage(playerid,COLOR_GREY,"   Nisi Hitman!!!Ovo mogu voziti samo Hitmani!!!");
                         RemovePlayerFromVehicle(playerid);
                         }
            }



a ERROR
C:\Users\Slegy\Desktop\samp03asvr_R4_win32\gamemodes\gf.pwn(3749) : warning 217: loose indentation
C:\Users\Slegy\Desktop\samp03asvr_R4_win32\gamemodes\gf.pwn(3751) : error 029: invalid expression, assumed zero
C:\Users\Slegy\Desktop\samp03asvr_R4_win32\gamemodes\gf.pwn(3758) : warning 217: loose indentation
C:\Users\Slegy\Desktop\samp03asvr_R4_win32\gamemodes\gf.pwn(3883) : warning 219: local variable "newcar" shadows a variable at a preceding level
C:\Users\Slegy\Desktop\samp03asvr_R4_win32\gamemodes\gf.pwn(26231) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.


        new newcar = GetPlayerVehicleID(playerid);
        if(newcar == 11 || newcar == 10 || newcar == 9 || newcar == 8 || newcar == 7 || newcar == 6 || newcar == 5 || newcar == 4 || newcar == 3 || newcar == 2 || newcar == 1)
                {
                         if(PlayerInfo[playerid][pMember] == 8||PlayerInfo[playerid][pLeader] == 8) { }
                         else
                         {
                         SendClientMessage(playerid,COLOR_GREY,"   Nisi Hitman!!!Ovo mogu voziti samo Hitmani!!!");
                         RemovePlayerFromVehicle(playerid);
                         }
            }


omg pa pazite malo na zagrade, PlayerInfo[playerid][pLeader] == 8)
Aequam memento rebus in arduis servare mentem.