Que ice mal? (algo facil) -
pooooolo - 20.11.2009
Код:
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.
Re: Que ice mal? (algo facil) -
elvago - 20.11.2009
ni idea, pero antes que nada, creaste el forward "IsPlayerHealth()"
Re: Que ice mal? (algo facil) -
GroX0r - 20.11.2009
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..
Re: Que ice mal? (algo facil) -
M1GU3L - 21.11.2009
Код:
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
![Wink](images/smilies/wink.png)
.
Re: Que ice mal? (algo facil) -
Donuts - 21.11.2009
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;
}
Re: Que ice mal? (algo facil) -
xenowort - 07.12.2009
para mas de lo que te tira errores no son de parte de ese codigo con parte de otros
revisa bien
Re: Que ice mal? (algo facil) -
Donuts - 07.12.2009
El compiler da esos errores porque tenia brackets '{' '}' de mas