23.05.2015, 21:06
Quote:
why this erros on comments?
Код:
// roubo de lojas com NPC new targetplayer = GetPlayerTargetPlayer(i); if(IsValidActor(targetplayer) && targetplayer != INVALID_PLAYER_ID) { if(IsACop(i)) return 0; if(rouboulojinha[i] == true) return SendClientMessage(i, COLOR_WHITE, "You stole a newly store! Must wait TWO MINUTES for theft."); if(assaltandolojinha[i] == false) { npcquetaroubando[i] = targetplayer; if(!strcmp(currentActorAnim[npcquetaroubando[i]], "handsup")) return SendClientMessage(playerid, COLOR_GREY, "Este NPC jб estб sendo roubado!"); // error 017: undefined symbol "currentActorAnim" ApplyActorAnimation(npcquetaroubando, "PED", "handsup", 4.1, 0, 0, 0, 0, 0); // error 035: argument type mismatch (argument 1) pertodonpc[i] = GetPlayerInterior(i); assaltandolojinha[i] = true; // crime wanted[i] += 1; //PlayerPlaySound(playerid, 100008, 0.0, 0.0, 0.0); // " OH NO MAN ! " PlayerPlaySound(i, 100013, 0.0, 0.0, 0.0); // " What Are You Doing?! SetTimerEx("AssaltandoLoja", 5000, 0, "i", i); ShowPlayerProgressBar(i, progresso[i]); TextDrawShowForPlayer(i, ProgressoTexto[i]); } } |
PHP код:
stock strcpy(dest[], const source[], maxlength=sizeof dest)
{
strcat((dest[0] = EOS, dest), source, maxlength);
}
new currentActorAnim[MAX_ACTORS][24];
stock ApplyActorAnimationEx(actorid, lib[], anim[], Float:fDelta, loop, lockx, locky, freeze, time)
{
strcpy(currentActorAnim[actorid], anim);
return ApplyActorAnimation(actorid, lib, anim, fDelta, loop, lockx, locky, freeze, time);
}
#if defined _ALS_ApplyActorAnimation
#undef ApplyActorAnimation
#else
#define _ALS_ApplyActorAnimation
#endif
#define ApplyActorAnimation ApplyActorAnimationEx