Que ice mal? (algo facil)
#1

Код:
public IsPlayerHealth() {

   {
  new Float:health;
  GetPlayerHealth(playerid,health);
  if(health >= 10)// el 70 marca, que al tener 70% o menos no nos dejara teletransportarnos

  
	  }
    else
    {
    ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 0, 0, 0, 1, 0);
    Diseased[playerid] = 1;
    
    }
    return 1;
  }

I ME TIRA EL SIGUIENTE ERROR:

Код:
C:\SUBZER~1\GAMEMO~1\GAMEMO~1.PWN(863) : error 017: undefined symbol "isStringSame"
C:\SUBZER~1\GAMEMO~1\GAMEMO~1.PWN(922) : error 017: undefined symbol "strtok"
C:\SUBZER~1\GAMEMO~1\GAMEMO~1.PWN(922) : error 033: array must be indexed (variable "cmd")
C:\SUBZER~1\GAMEMO~1\GAMEMO~1.PWN(927) : error 017: undefined symbol "strtok"
C:\SUBZER~1\GAMEMO~1\GAMEMO~1.PWN(927) : error 033: array must be indexed (variable "cmd")
C:\SUBZER~1\GAMEMO~1\GAMEMO~1.PWN(930) : error 004: function "SendPlayerFormattedText" is not implemented
C:\SUBZER~1\GAMEMO~1\GAMEMO~1.PWN(931) : error 004: function "SendPlayerFormattedText" is not implemented
C:\SUBZER~1\GAMEMO~1\GAMEMO~1.PWN(932) : error 004: function "SendPlayerFormattedText" is not implemented
C:\SUBZER~1\GAMEMO~1\GAMEMO~1.PWN(933) : error 004: function "SendPlayerFormattedText" is not implemented
C:\SUBZER~1\GAMEMO~1\GAMEMO~1.PWN(937) : error 004: function "SendPlayerFormattedText" is not implemented
C:\SUBZER~1\GAMEMO~1\GAMEMO~1.PWN(938) : error 004: function "SendPlayerFormattedText" is not implemented
C:\SUBZER~1\GAMEMO~1\GAMEMO~1.PWN(939) : error 004: function "SendPlayerFormattedText" is not implemented
C:\SUBZER~1\GAMEMO~1\GAMEMO~1.PWN(940) : error 004: function "SendPlayerFormattedText" is not implemented
C:\SUBZER~1\GAMEMO~1\GAMEMO~1.PWN(941) : error 004: function "SendPlayerFormattedText" is not implemented
C:\SUBZER~1\GAMEMO~1\GAMEMO~1.PWN(945) : error 004: function "SendPlayerFormattedText" is not implemented
C:\SUBZER~1\GAMEMO~1\GAMEMO~1.PWN(946) : error 004: function "SendPlayerFormattedText" is not implemented
C:\SUBZER~1\GAMEMO~1\GAMEMO~1.PWN(1087) : error 017: undefined symbol "strtok"
C:\SUBZER~1\GAMEMO~1\GAMEMO~1.PWN(1087) : error 033: array must be indexed (variable "tmp")
C:\SUBZER~1\GAMEMO~1\GAMEMO~1.PWN(1172) : error 017: undefined symbol "strtok"
C:\SUBZER~1\GAMEMO~1\GAMEMO~1.PWN(1172) : error 033: array must be indexed (variable "tmp")
C:\SUBZER~1\GAMEMO~1\GAMEMO~1.PWN(1225) : error 017: undefined symbol "strtok"
C:\SUBZER~1\GAMEMO~1\GAMEMO~1.PWN(1225) : error 033: array must be indexed (variable "tmp")
C:\SUBZER~1\GAMEMO~1\GAMEMO~1.PWN(1288) : error 017: undefined symbol "strtok"
C:\SUBZER~1\GAMEMO~1\GAMEMO~1.PWN(1288) : error 033: array must be indexed (variable "tmp")
C:\SUBZER~1\GAMEMO~1\GAMEMO~1.PWN(1296) : error 017: undefined symbol "strtok"
C:\SUBZER~1\GAMEMO~1\GAMEMO~1.PWN(1296) : error 033: array must be indexed (variable "tmp")

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
Reply
#2

ni idea, pero antes que nada, creaste el forward "IsPlayerHealth()"
Reply
#3

me parece que lo pusiste el code en una parte incorrecta, osea debe ir el code en otro lugar, kreo k algo asi me paso..intenta acomodarlo bien..
Reply
#4

Код:
public IsPlayerHealth() 
 {
  new Float:health; 
  GetPlayerHealth(playerid,health,sizeof(health));
  if(health <= 10) //Si la vida es menor o igual a 10.
   {
    ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 0, 0, 0, 1, 0);
    Diseased[playerid] = 1;
    }
    return 1;
}
No estб probado .
Reply
#5

pawn Код:
public IsPlayerHealth()
{
  new Float:health;
  GetPlayerHealth(playerid,health);
  if(health <= 10) //Si la vida es menor o igual a 10.
  {
    ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 0, 0, 0, 1, 0);
    Diseased[playerid] = 1;
  }
   return 1;
}
Reply
#6

para mas de lo que te tira errores no son de parte de ese codigo con parte de otros

revisa bien
Reply
#7

El compiler da esos errores porque tenia brackets '{' '}' de mas
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)