Szerző Téma: Re:Boost  (Megtekintve 168 alkalommal)

Arnold_Alexander

  • Vendég
Re:Boost
« Dátum: 2011. augusztus 02. - 12:55:58 »
0 Show voters
if(newkeys & KEY_SPRINT{
if(gTeam[playerid] == TEAM_ZOMBIE)
{
if(GetPVarInt(playerid, \"Anim\") == 0)
{
        SetPVarInt(playerid, \"Anim\", 1);
ApplyAnimation(playerid,\"PED\",\"sprint_civi\",1,1,1,1,1,1);
} else {
        SetPVarInt(playerid, \"Anim\", 0);
        ClearAnimations(playerid);
}
}else{
}
return 1;
}

Arnold_Alexander

  • Vendég
Re:Boost
« Válasz #1 Dátum: 2011. augusztus 02. - 13:09:43 »
0 Show voters
WebSite\" post=\"161399\" timestamp=\"1312283178\"]
Azért mert egy lezárást kihagytál szerintem
 
if(newkeys & KEY_SPRINT{
if(gTeam[playerid] == TEAM_ZOMBIE)
{
if(GetPVarInt(playerid, \"Anim\") == 0)
{
        SetPVarInt(playerid, \"Anim\", 1);
ApplyAnimation(playerid,\"PED\",\"sprint_civi\",1,1,1,1,1,1);
} else {
        SetPVarInt(playerid, \"Anim\", 0);
        ClearAnimations(playerid);
}
}
return 1;
}

 
Probáld igy :)
 
[/quote]
énis ugyenezt irtam már megbocsáss... -.-\" (((most ezzel tevagy a jó scripter meg a pro hogy lemásoltad azt amit énirtam és leszedtél kb 6 karaktert...))) én megoldásom annyival jobb hogy hagytam neki helyet hogy micsináljon HA NEM zombi csapatban van depersze website szerint az õ copy megoldása jobb DE NEM! döntsd el meiket használod!

Arnold_Alexander

  • Vendég
Re:Boost
« Válasz #2 Dátum: 2011. augusztus 02. - 13:13:20 »
+1 Show voters
akkor a helyes ez:
 
if(newkeys & KEY_SPRINT{
if(gTeam[playerid] == TEAM_ZOMBIE)
{
if(GetPVarInt(playerid, \"Anim\") == 0)
{
SetPVarInt(playerid, \"Anim\", 1);
ApplyAnimation(playerid,\"PED\",\"sprint_civi\",1,1,1,1,1,1);
}
else
{
SetPVarInt(playerid, \"Anim\", 0);
ClearAnimations(playerid);
}
}
else
{
//HA NEM ZOMBI CSAPATBAN VAN
}
return 1;
}

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal