mura Posted January 25, 2012 Report Share Posted January 25, 2012 Am incercat de pe un tutorial ceva cu settimerpublic OnPlayerText(playerid, text[]){ new JackID = GetPlayerID("Jack"); new Float:x,Float:y,Float:z; GetPlayerPos(JackID,x,y,z); if(IsPlayerFacingPlayer(playerid,JackID,10.0)) { if(strfind(text, "Follow me") != -1 && IsPlayerInRangeOfPoint(playerid,5.0,x,y,z)) { SetPlayerChatBubble(JackID,"Ok!",white, 100.0, 5000); SetTimerEx("GetJackToFolow",100,1,"i",playerid); ApplyAnimation(JackID,"PED","WALK_PLAYER",4.1,1,1,1,1,0); return 1; } } return 1;} nu mere.Imi da eroare la getplayerid cu unfinded symbol...nui dau de cap. Link to comment Share on other sites More sharing options...
mura Posted January 25, 2012 Author Report Share Posted January 25, 2012 da chear nimeni ?:( Link to comment Share on other sites More sharing options...
Question
mura
Am incercat de pe un tutorial ceva cu settimer
public OnPlayerText(playerid, text[])
{
new JackID = GetPlayerID("Jack");
new Float:x,Float:y,Float:z;
GetPlayerPos(JackID,x,y,z);
if(IsPlayerFacingPlayer(playerid,JackID,10.0))
{
if(strfind(text, "Follow me") != -1 && IsPlayerInRangeOfPoint(playerid,5.0,x,y,z))
{
SetPlayerChatBubble(JackID,"Ok!",white, 100.0, 5000);
SetTimerEx("GetJackToFolow",100,1,"i",playerid);
ApplyAnimation(JackID,"PED","WALK_PLAYER",4.1,1,1,1,1,0);
return 1;
}
}
return 1;
} nu mere.Imi da eroare la getplayerid cu unfinded symbol...nui dau de cap.
Link to comment
Share on other sites
1 answer to this question
Recommended Posts