[Pomoc]Warnings 16

Započeo ...Nikola..., Jul 05, 2011, 19:01:11 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

if (vehicleid == gsf1 && !ispassenger)
{
    if (PlayerInfo[playerid][pMember] != 11 && PlayerInfo[playerid][pLeader] != 11)
    {
        RemovePlayerFromVehicle(playerid);
        SendClientMessage(playerid, -1, "Niste clan GSF");
    }
}
return 1;
}
if (vehicleid == gsf2 && !ispassenger)
{
    if (PlayerInfo[playerid][pMember] != 11 && PlayerInfo[playerid][pLeader] != 11)
    {
        RemovePlayerFromVehicle(playerid);
        SendClientMessage(playerid, -1, "Niste clan GSF");
    }
}
return 1;
}
if (vehicleid == gsf3 && !ispassenger)
{
    if (PlayerInfo[playerid][pMember] != 11 && PlayerInfo[playerid][pLeader] != 11)
    {
        RemovePlayerFromVehicle(playerid);
        SendClientMessage(playerid, -1, "Niste clan GSF");
    }
}
return 1;
}
if (vehicleid == gsf4 && !ispassenger)
{
    if (PlayerInfo[playerid][pMember] != 11 && PlayerInfo[playerid][pLeader] != 11)
    {
        RemovePlayerFromVehicle(playerid);
        SendClientMessage(playerid, -1, "Niste clan GSF");
    }
}
return 1;
}
if (vehicleid == gsf5 && !ispassenger)
{
    if (PlayerInfo[playerid][pMember] != 11 && PlayerInfo[playerid][pLeader] != 11)
    {
        RemovePlayerFromVehicle(playerid);
        SendClientMessage(playerid, -1, "Niste clan GSF");
    }
}
return 1;
}
if (vehicleid == gsf6 && !ispassenger)
{
    if (PlayerInfo[playerid][pMember] != 11 && PlayerInfo[playerid][pLeader] != 11)
    {
        RemovePlayerFromVehicle(playerid);
        SendClientMessage(playerid, -1, "Niste clan GSF");
    }
}
return 1;
}
if (vehicleid == gsf7 && !ispassenger)
{
    if (PlayerInfo[playerid][pMember] != 11 && PlayerInfo[playerid][pLeader] != 11)
    {
        RemovePlayerFromVehicle(playerid);
        SendClientMessage(playerid, -1, "Niste clan GSF");
    }
}
return 1;
}
if (vehicleid == gsf8 && !ispassenger)
{
    if (PlayerInfo[playerid][pMember] != 11 && PlayerInfo[playerid][pLeader] != 11)
    {
        RemovePlayerFromVehicle(playerid);
        SendClientMessage(playerid, -1, "Niste clan GSF");
    }
}
return 1;
}


kada stavim ovo izadje mi ovo

1\Street Crimes RolePlay\gamemodes\SC.pwn(2288) : error 010: invalid function or declaration
1\Street Crimes RolePlay\gamemodes\SC.pwn(2290) : error 010: invalid function or declaration
1\Street Crimes RolePlay\gamemodes\SC.pwn(2296) : error 010: invalid function or declaration
1\Street Crimes RolePlay\gamemodes\SC.pwn(2298) : error 010: invalid function or declaration
1\Street Crimes RolePlay\gamemodes\SC.pwn(2300) : error 010: invalid function or declaration
1\Street Crimes RolePlay\gamemodes\SC.pwn(2306) : error 010: invalid function or declaration
1\Street Crimes RolePlay\gamemodes\SC.pwn(2308) : error 010: invalid function or declaration
1\Street Crimes RolePlay\gamemodes\SC.pwn(2310) : error 010: invalid function or declaration
1\Street Crimes RolePlay\gamemodes\SC.pwn(2316) : error 010: invalid function or declaration
1\Street Crimes RolePlay\gamemodes\SC.pwn(2318) : error 010: invalid function or declaration
1\Street Crimes RolePlay\gamemodes\SC.pwn(2320) : error 010: invalid function or declaration
1\Street Crimes RolePlay\gamemodes\SC.pwn(2326) : error 010: invalid function or declaration
1\Street Crimes RolePlay\gamemodes\SC.pwn(2328) : error 010: invalid function or declaration
1\Street Crimes RolePlay\gamemodes\SC.pwn(2330) : error 010: invalid function or declaration
1\Street Crimes RolePlay\gamemodes\SC.pwn(2336) : error 010: invalid function or declaration
1\Street Crimes RolePlay\gamemodes\SC.pwn(2338) : error 010: invalid function or declaration
1\Street Crimes RolePlay\gamemodes\SC.pwn(2340) : error 010: invalid function or declaration
1\Street Crimes RolePlay\gamemodes\SC.pwn(2346) : error 010: invalid function or declaration
1\Street Crimes RolePlay\gamemodes\SC.pwn(2348) : error 010: invalid function or declaration
1\Street Crimes RolePlay\gamemodes\SC.pwn(2350) : error 010: invalid function or declaration
1\Street Crimes RolePlay\gamemodes\SC.pwn(2356) : error 010: invalid function or declaration
1\Street Crimes RolePlay\gamemodes\SC.pwn(2358) : error 010: invalid function or declaration
1\Street Crimes RolePlay\gamemodes\SC.pwn(2360) : error 010: invalid function or declaration
1\Street Crimes RolePlay\gamemodes\SC.pwn(2366) : error 010: invalid function or declaration
1\Street Crimes RolePlay\gamemodes\SC.pwn(12741) : warning 204: symbol is assigned a value that is never used: "gsf1"
1\Street Crimes RolePlay\gamemodes\SC.pwn(12742) : warning 204: symbol is assigned a value that is never used: "gsf2"
1\Street Crimes RolePlay\gamemodes\SC.pwn(12743) : warning 204: symbol is assigned a value that is never used: "gsf3"
1\Street Crimes RolePlay\gamemodes\SC.pwn(12744) : warning 204: symbol is assigned a value that is never used: "gsf4"
1\Street Crimes RolePlay\gamemodes\SC.pwn(12745) : warning 204: symbol is assigned a value that is never used: "gsf5"
1\Street Crimes RolePlay\gamemodes\SC.pwn(12746) : warning 204: symbol is assigned a value that is never used: "gsf6"
1\Street Crimes RolePlay\gamemodes\SC.pwn(12747) : warning 204: symbol is assigned a value that is never used: "gsf7"
1\Street Crimes RolePlay\gamemodes\SC.pwn(12748) : warning 204: symbol is assigned a value that is never used: "gsf8"

24 Errors.


Da li si to stavio pod callback OnPlayerEnterVehicle?

Last nick: Paradox

if ((vehicleid == gsf1 || vehicleid == gsf2 || vehicleid == gsf3 || vehicleid == gsf4 || vehicleid == gsf5 || vehicleid == gsf6 || vehicleid == gsf7 || vehicleid == gsf8) && !ispassenger)
{
    if (PlayerInfo[playerid][pMember] != 11 && PlayerInfo[playerid][pLeader] != 11)
    {
        RemovePlayerFromVehicle(playerid);
        SendClientMessage(playerid, -1, "Niste clan GSF");
    }
}


Evo ti..

@Paradox, bilo mu je u previse uglatih zagrada, sad sam mu slozio i smanjio kod..
Poslednja Izmena: Jul 06, 2011, 11:25:50 PRE PODNE od LuKsA
Aequam memento rebus in arduis servare mentem.

1\Street Crimes RolePlay\gamemodes\SC.pwn(2288) : error 010: invalid function or declaration
1\Street Crimes RolePlay\gamemodes\SC.pwn(2290) : error 010: invalid function or declaration
1\Street Crimes RolePlay\gamemodes\SC.pwn(12669) : warning 204: symbol is assigned a value that is never used: "gsf1"
1\Street Crimes RolePlay\gamemodes\SC.pwn(12670) : warning 204: symbol is assigned a value that is never used: "gsf2"
1\Street Crimes RolePlay\gamemodes\SC.pwn(12671) : warning 204: symbol is assigned a value that is never used: "gsf3"
1\Street Crimes RolePlay\gamemodes\SC.pwn(12672) : warning 204: symbol is assigned a value that is never used: "gsf4"
1\Street Crimes RolePlay\gamemodes\SC.pwn(12673) : warning 204: symbol is assigned a value that is never used: "gsf5"
1\Street Crimes RolePlay\gamemodes\SC.pwn(12674) : warning 204: symbol is assigned a value that is never used: "gsf6"
1\Street Crimes RolePlay\gamemodes\SC.pwn(12675) : warning 204: symbol is assigned a value that is never used: "gsf7"
1\Street Crimes RolePlay\gamemodes\SC.pwn(12676) : warning 204: symbol is assigned a value that is never used: "gsf8"

2 Errors.


sad mi izadje ovo

Omg! Daj mi linije 2288 i 2290

A ove nisi koristio nigdje u nikakvoj komand i slicno, zato su ti warninzi.
Aequam memento rebus in arduis servare mentem.

2288 if ((vehicleid == gsf1 || vehicleid == gsf2 || vehicleid == gsf3 || vehicleid == gsf4 || vehicleid == gsf5 || vehicleid == gsf6 || vehicleid == gsf7 || vehicleid == gsf8) && !ispassenger)

2290     if (PlayerInfo[playerid][pMember] != 11 && PlayerInfo[playerid][pLeader] != 11)

TI je definirano ispassenger? Jesi definirao gsf1, gsf2...?
Aequam memento rebus in arduis servare mentem.

public OnPlayerEnterVehicle(playerid, vehicleid,ispassenger)

new gsf1,gsf2,gsf3,gsf4,gsf5,gsf6,gsf7,gsf8

Hoce li neko pomoci?
Poslednja Izmena: Jul 06, 2011, 15:24:55 POSLE PODNE od Boki Pro