SA-MP Forums Archive
Errores de comando de teleport - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: Errores de comando de teleport (/showthread.php?tid=142517)



Errores de comando de teleport - Suk - 18.04.2010

C:\Documents and Settings\win\Escritorio\Sa-Mp Server 0.3\gamemodes\LSTDM.pwn(99) : error 017: undefined symbol "GetHealth"
C:\Documents and Settings\win\Escritorio\Sa-Mp Server 0.3\gamemodes\LSTDM.pwn(106) : error 029: invalid expression, assumed zero
C:\Documents and Settings\win\Escritorio\Sa-Mp Server 0.3\gamemodes\LSTDM.pwn(106) : warning 221: label name "Float" shadows tag name
C:\Documents and Settings\win\Escritorio\Sa-Mp Server 0.3\gamemodes\LSTDM.pwn(106) : error 017: undefined symbol "GetHealth"
C:\Documents and Settings\win\Escritorio\Sa-Mp Server 0.3\gamemodes\LSTDM.pwn(107) : warning 221: label name "Float" shadows tag name
C:\Documents and Settings\win\Escritorio\Sa-Mp Server 0.3\gamemodes\LSTDM.pwn(107) : error 017: undefined symbol "GetHealth"
C:\Documents and Settings\win\Escritorio\Sa-Mp Server 0.3\gamemodes\LSTDM.pwn(111) : warning 213: tag mismatch
C:\Documents and Settings\win\Escritorio\Sa-Mp Server 0.3\gamemodes\LSTDM.pwn(114) : warning 225: unreachable code
C:\Documents and Settings\win\Escritorio\Sa-Mp Server 0.3\gamemodes\LSTDM.pwn(106) : warning 203: symbol is never used: "Float"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

pawn Код:
if (!strcmp("/A51A",cmdtext,true))
{
    if (GetHealth(playerid) < 60) return SendClientMessage(playerid,AVISO,"Como minimo, debes de tener 60 por cien de vida!");
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,268.84,-30.09,1883.15);
    SetPlayerFacingAngle(playerid,0.0);
    SendClientMessage(playerid,0xffffffff,"Te has teletransportado a Area 51, Base A");
    return 1;
}
forward Float:GetHealth(playerid);
Float:GetHealth(playerid)
{
    new Float:health;
    GetPlayerHealth(playerid,health);
    return health;
}



Re: Errores de comando de teleport - Suk - 18.04.2010

Ahh lo siento, no fue nada, vieron que puse todo junto, pues solo era que los forward y lсos new ivan aarriba, no me fije que abia que ponerlos jaja, borren o cierren


Re: Errores de comando de teleport - Cesar_Biker - 18.04.2010

Quote:
Originally Posted by Suk
Ahh lo siento, no fue nada, vieron que puse todo junto, pues solo era que los forward y lсos new ivan aarriba, no me fije que abia que ponerlos jaja, borren o cierren
Buena la autoayuda, jeje, me alegro que sepas fijarte en tus errores.


Re: Errores de comando de teleport - Suk - 18.04.2010

Si, esq lo puse y no me fije en eso jaja