[Ajuda] Interior
#1

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/Entrar", true) == 0)
    {
    else if (PlayerToPoint(3.0, playerid,691.5710,-1276.1722,13.5607))
    {//Entrada Prefeitura
        SetPlayerPos(playerid, -2169.7590,645.5231,1057.5938);
        GameTextForPlayer(playerid, "~w~Prefeitura LS",5000,1);
        SetPlayerInterior(playerid,1);
        SetPlayerFacingAngle(playerid, 0);
        PlayerInfo[playerid][pInt] = 1;
        SetPlayerVirtualWorld(playerid, 0);
        {
    return 1;
}
pawn Код:
C:\Users\Alisson\Desktop\Brasil Knight Games\gamemodes\BKG.pwn(72) : error 029: invalid expression, assumed zero
C:\Users\Alisson\Desktop\Brasil Knight Games\gamemodes\BKG.pwn(72) : warning 215: expression has no effect
C:\Users\Alisson\Desktop\Brasil Knight Games\gamemodes\BKG.pwn(72) : error 001: expected token: ";", but found "if"
C:\Users\Alisson\Desktop\Brasil Knight Games\gamemodes\BKG.pwn(72) : error 017: undefined symbol "PlayerToPoint"
C:\Users\Alisson\Desktop\Brasil Knight Games\gamemodes\BKG.pwn(72) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
pawn Код:
else if (PlayerToPoint(3.0, playerid,691.5710,-1276.1722,13.5607))
Porque ta dando erro
Reply
#2

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]) {

    if(strcmp(cmdtext, "/Entrar", true) == 0) {
   
        if ( IsPlayerInRangeOfPoint(playerid, 3.0, 691.5710,-1276.1722,13.5607)) {

            //Entrada Prefeitura
            SetPlayerPos(playerid, -2169.7590,645.5231,1057.5938);
            GameTextForPlayer(playerid, "~w~Prefeitura LS",5000,1);
            SetPlayerInterior(playerid,1);
            SetPlayerFacingAngle(playerid, 0);
            PlayerInfo[playerid][pInt] = 1;
            SetPlayerVirtualWorld(playerid, 0);
        }
        return 1;
    }
   
    return 0;
}
PlayerToPoint nгo й uma funзгo nativa!
Reply
#3

pawn Код:
PlayerInfo[playerid][pInt] = 1;
pawn Код:
C:\Users\Alisson\Desktop\Brasil Knight Games\gamemodes\BKG.pwn(79) : error 017: undefined symbol "PlayerInfo"
C:\Users\Alisson\Desktop\Brasil Knight Games\gamemodes\BKG.pwn(79) : warning 215: expression has no effect
C:\Users\Alisson\Desktop\Brasil Knight Games\gamemodes\BKG.pwn(79) : error 001: expected token: ";", but found "]"
C:\Users\Alisson\Desktop\Brasil Knight Games\gamemodes\BKG.pwn(79) : error 029: invalid expression, assumed zero
C:\Users\Alisson\Desktop\Brasil Knight Games\gamemodes\BKG.pwn(79) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Eu Ja Tinha Resolvido Isso Mais Voltou a Dar o Erro
Reply
#4

pawn Код:
enum pInfo {

    pInt

};

new PlayerInfo[MAX_PLAYERS][pInfo];
Isso que da copiar cуdigo dos outros!
Reply
#5

PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    if(
strcmp(cmdtext"/Entrar"true) == 0)
    {
        if(
PlayerToPoint(3.0playerid,691.5710,-1276.1722,13.5607))
        {
//Entrada Prefeitura
            
SetPlayerPos(playerid, -2169.7590,645.5231,1057.5938);
            
GameTextForPlayer(playerid"~w~Prefeitura LS",5000,1);
            
SetPlayerInterior(playerid,1);
            
SetPlayerFacingAngle(playerid0);
            
PlayerInfo[playerid][pInt] = 1;
            
SetPlayerVirtualWorld(playerid0);
        }
    return 
1;

podia ter postado isso mais rapido, foi mal :/
This forum requires that you wait 240 seconds between posts.
Reply
#6

pawn Код:
Eu Tenho Que Colocar o


public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if ((newkeys==KEY_SECONDARY_ATTACK))
{
   OnPlayerCommandText(playerid,"/entrandointerior");
   OnPlayerCommandText(playerid,"/sairdointerior");

}
if ((newkeys==KEY_SECONDARY_ATTACK))
{
   OnPlayerCommandText(playerid,"/entrandointerior");
   OnPlayerCommandText(playerid,"/sairdointerior");

}
Reply
#7

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) {

    if ( newkeys == KEY_SECONDARY_ATTACK ) {
   
       OnPlayerCommandText(playerid,"/Entrar");

    }
    return 1;
}
Reply
#8

Vlw Deu Certo
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)