GooD Posted February 2, 2013 Report Share Posted February 2, 2013 D:\Role Play Server\Los Santos Role Play\Los Santos Role Play\Los Santos Role Play\gamemodes\gtarp.pwn(2617) : error 017: undefined symbol "newcar"D:\Role Play Server\Los Santos Role Play\Los Santos Role Play\Los Santos Role Play\gamemodes\gtarp.pwn(2619) : error 017: undefined symbol "playerid"D:\Role Play Server\Los Santos Role Play\Los Santos Role Play\Los Santos Role Play\gamemodes\gtarp.pwn(2623) : error 017: undefined symbol "playerid"D:\Role Play Server\Los Santos Role Play\Los Santos Role Play\Los Santos Role Play\gamemodes\gtarp.pwn(2624) : error 017: undefined symbol "playerid"Liniile:[pawn]public IsASurenos(){if(newcar == surcar1 || newcar == surcar2 || newcar == surcar3 || newcar == surcar4 || newcar == surcar5 || newcar == surcar6 || newcar == surcar7) { if(PlayerInfo[playerid][pMember] == 5 ||PlayerInfo[playerid][pLeader] == 5) { } else { SendClientMessage(playerid,COLOR_GREY," Nu esti membru Surenos "); RemovePlayerFromVehicle(playerid); } }}[/pawn] Link to comment Share on other sites More sharing options...
Guest Rock Posted February 2, 2013 Report Share Posted February 2, 2013 public IsASurenos( playerid, newcar ) { if(newcar == surcar1 || newcar == surcar2 || newcar == surcar3 || newcar == surcar4 || newcar == surcar5 || newcar == surcar6 || newcar == surcar7) { if(PlayerInfo[pMember] == 5 ||PlayerInfo[playerid][pLeader] == 5) { } else { SendClientMessage(playerid,COLOR_GREY," Nu esti membru Surenos "); RemovePlayerFromVehicle(playerid); } } } Link to comment Share on other sites More sharing options...
GooD Posted February 2, 2013 Author Report Share Posted February 2, 2013 Rezolvat mersi :*.. respect! Link to comment Share on other sites More sharing options...
Guest Rock Posted February 2, 2013 Report Share Posted February 2, 2013 Ai sus in script la playerinfo ceva de genul?new PlayerInfo[MAX_PLAYERS][enum];"enum" - Numele enumeratorului in care sunt variabilele pMember, etc.. Link to comment Share on other sites More sharing options...
DarkyTheAngel Posted February 2, 2013 Report Share Posted February 2, 2013 [pawn]public IsASurenos( playerid ){ new newcar = GetPlayerVehicleID ( playerid ) ; if(newcar == surcar1 || newcar == surcar2 || newcar == surcar3 || newcar == surcar4 || newcar == surcar5 || newcar == surcar6 || newcar == surcar7) { if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5) { } else { SendClientMessage(playerid,COLOR_GREY," Nu esti membru Surenos "); RemovePlayerFromVehicle(playerid); } }}[/pawn]EDIT: Se pare ca Rock a fost mai rapid ca mine. ) Link to comment Share on other sites More sharing options...
GooD Posted February 2, 2013 Author Report Share Posted February 2, 2013 Multumesc oricum Dark Si Rock multumesc dar am rezolvat inainte asta.Ai sus in script la playerinfo ceva de genul?new PlayerInfo[MAX_PLAYERS][enum];"enum" - Numele enumeratorului in care sunt variabilele pMember, etc..Mai am o problema le poate lua oricine.. Am scriptat si asta: [pawn]// -- surenos -- if(IsASurenos(newcar)) { if(PlayerInfo[playerid][pLeader] == 5||PlayerInfo[playerid][pMember] == 5) { } else { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, COLOR_GREY,"You don't have keys of this vehicle.");} } // ----[/pawn]Cu toate ca aveam si aici:[pawn]public IsASurenos( playerid, newcar ){if(newcar == surcar1 || newcar == surcar2 || newcar == surcar3 || newcar == surcar4 || newcar == surcar5 || newcar == surcar6 || newcar == surcar7) { if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5){} { SendClientMessage(playerid,COLOR_GREY," Nu esti membru Surenos "); RemovePlayerFromVehicle(playerid); } }}[/pawn]Dar cu toate astea nu merge nici una. Link to comment Share on other sites More sharing options...
Fallen0329 Posted February 2, 2013 Report Share Posted February 2, 2013 e total gresit cam ce ai incercat tu sa faci acoloin public verifici doar daca masina apartine acelei factiuni[pawn]public IsASurenos( newcar ){ if(newcar == surcar1 || newcar == surcar2 || newcar == surcar3 || newcar == surcar4 || newcar == surcar5 || newcar == surcar6 || newcar == surcar7) { return 1; }return 0;}[/pawn]iar partea unde se apeleaza acel public trebuie asa[pawn]if(IsASurenos(newcar)){ if(PlayerInfo[playerid][pLeader] == 5||PlayerInfo[playerid][pMember] == 5) { } else { SendClientMessage(playerid,COLOR_GREY," Nu esti membru Surenos "); RemovePlayerFromVehicle(playerid); }}[/pawn] Link to comment Share on other sites More sharing options...
GooD Posted February 2, 2013 Author Report Share Posted February 2, 2013 Multumesc.. respect!. Poate ca le fac gresit dar imi place sa le fac singur pentru ca asa invat ..T/C Link to comment Share on other sites More sharing options...
Question
GooD
D:\Role Play Server\Los Santos Role Play\Los Santos Role Play\Los Santos Role Play\gamemodes\gtarp.pwn(2617) : error 017: undefined symbol "newcar"
D:\Role Play Server\Los Santos Role Play\Los Santos Role Play\Los Santos Role Play\gamemodes\gtarp.pwn(2619) : error 017: undefined symbol "playerid"
D:\Role Play Server\Los Santos Role Play\Los Santos Role Play\Los Santos Role Play\gamemodes\gtarp.pwn(2623) : error 017: undefined symbol "playerid"
D:\Role Play Server\Los Santos Role Play\Los Santos Role Play\Los Santos Role Play\gamemodes\gtarp.pwn(2624) : error 017: undefined symbol "playerid"
Liniile:
[pawn]public IsASurenos()
{
if(newcar == surcar1 || newcar == surcar2 || newcar == surcar3 || newcar == surcar4 || newcar == surcar5 || newcar == surcar6 || newcar == surcar7)
{
if(PlayerInfo[playerid][pMember] == 5 ||PlayerInfo[playerid][pLeader] == 5) { }
else
{
SendClientMessage(playerid,COLOR_GREY," Nu esti membru Surenos ");
RemovePlayerFromVehicle(playerid);
}
}
}[/pawn]
Link to comment
Share on other sites
7 answers to this question
Recommended Posts