[AJUDA]corrida
#1

galera, eu venho aqui pedir ajuda em um fs de corrida q eu to fazendo.

1°: ele ta dando ums errinhos chatos que nгo consigo descobrir o q e.
pawn Code:
Compilando checkpoints.pwn...
C:\Documents and Settings\Administrador\Meus documentos\Arquivos do servidor\filterscripts\checkpoints.pwn(74) : error 010: invalid function or declaration
C:\Documents and Settings\Administrador\Meus documentos\Arquivos do servidor\filterscripts\checkpoints.pwn(78) : error 010: invalid function or declaration
Pawn compiler 3.2.3664                          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
2°: eu queria q so aparessece os Check points quando o adm digitasse /iniciarcorrida.

3°:a e queria tambem q quando o player digitasse o comando ja entrasse com um carro.

aqui ta o codigo do meu fs:
pawn Code:
// This is a comment
// uncomment the line below if you want to write a filterscript
#define FILTERSCRIPT
#define COLOR_RED 0xD00207AA

#include <a_samp>

#if defined FILTERSCRIPT


public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

#else

main()
{
    print("\n----------------------------------");
    print(" Blank Gamemode by your name here");
    print("----------------------------------\n");
}

#endif

new checkcorrida[MAX_PLAYERS];

new Float:ChecksAvenida[1][3] = {
{2021.9279,851.2713,6.4387}
};

public OnGameModeInit()
{
    // Don't use these lines if it's a filterscript
   
    return 1;
}

public OnGameModeExit()
{
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/iniciarcorrida", true) == 0)
{
     if(IsPlayerAdmin(playerid))
     {
         for(new i = 0; i < GetMaxPlayers(); i++)
         {
         checkcorrida[playerid] = 0;        
         SetPlayerRaceCheckpoint(playerid, 0, ChecksAvenida[checkcorrida[playerid]][0], ChecksAvenida[checkcorrida[playerid]][1], ChecksAvenida[checkcorrida[playerid]][2], ChecksAvenida[checkcorrida[playerid] + 1][0], ChecksAvenida[checkcorrida[playerid] + 1][1], ChecksAvenida[checkcorrida[playerid] + 1][2], 8.0);
         }        
         }        
         }
     else
     {
         SendClientMessage(playerid, COLOR_RED, "Apenas Para Admins");
     }
}



    if(strcmp(cmdtext,"/entrarcorrida",true)==0){
checkcorrida[playerid] = 0;
SetPlayerRaceCheckpoint(playerid, 0, ChecksAvenida[checkcorrida[playerid]][0], ChecksAvenida[checkcorrida[playerid]][1], ChecksAvenida[checkcorrida[playerid]][2], ChecksAvenida[checkcorrida[playerid] + 1][0], ChecksAvenida[checkcorrida[playerid] + 1][1], ChecksAvenida[checkcorrida[playerid] + 1][2], 8.0);
}
return 1;
}
}


public OnPlayerEnterRaceCheckpoint(playerid)
{
if(checkcorrida[playerid] == 1)
{
SendClientMessage(playerid, 0xFFFF00AA, "Vocк terminou a corrida!");
DisablePlayerRaceCheckpoint(playerid);
checkcorrida[playerid] = 0;
return 1;
}
else
{
DisablePlayerCheckpoint(playerid);
checkcorrida[playerid] ++;
SetPlayerRaceCheckpoint(playerid, 0, ChecksAvenida[checkcorrida[playerid]][0], ChecksAvenida[checkcorrida[playerid]][1], ChecksAvenida[checkcorrida[playerid]][2], ChecksAvenida[checkcorrida[playerid] + 1][0], ChecksAvenida[checkcorrida[playerid] + 1][1], ChecksAvenida[checkcorrida[playerid] + 1][2], 8.0);
return 1;
}
}
se alguem poder me ajudar eu agradesso muito.
Reply
#2

1°: ele ta dando ums errinhos chatos que nгo consigo descobrir o q e.

Posta a linha certa ae...

2°: eu queria q so aparessece os Check points quando o adm digitasse /iniciarcorrida.

Resposta:Pelo que vi ae..isso ja esta feito...

3°:a e queria tambem q quando o player digitasse o comando ja entrasse com um carro.
Resposta
pawn Code:
new Float:X,Float:Y,Float:Z,Float:Angle, carid;
GetPlayerPos ( playerid,X,Y,Z ) ;
GetPlayerFacingAngle ( playerid,Angle ) ;
carid = GetPlayerVehicleID ( playerid ) ;
carid = CreateVehicle ( 562,X,Y,Z,0.0,-1,-1,9000000 ) ;
PutPlayerInVehicle (  playerid, carid, 0 )    ;
Cod By Knife
no CreatVehicle e so mudar o id do veiculo...
Reply
#3

ta aqui as linhas
pawn Code:
C:\Documents and Settings\Administrador\Meus documentos\Arquivos do servidor\filterscripts\checkpoints.pwn(74) : error: 010: invalid function or declaration
if(strcmp(cmdtext,"/entrarcorrida",true)==0){

C:\Documents and Settings\Administrador\Meus documentos\Arquivos do servidor\filterscripts\checkpoints.pwn(78) : error: 010: invalid function or declaration
}
return 1;
}
}
Reply
#4

Pow Eu Tb Tou Precisando Awe Ver Qual й o Motivo do Erro awe Vlws
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)