[Ajuda] pawn paro de funcionar
#1

Falar galera , achei um code , e queria encaixar no meu gm.

assim...

Coloquei isso no topo.

PHP код:
new Stats[MAX_PLAYERS];
new 
Float:Checkpoints[4][3] = //4 = 4 coordenadas | 3 = 3 "valores" (X,Y,Z)
{
{
3116.8188,-2054.5698,3.5096},
{
3125.7852,-1768.5270,3.5096},
{
3345.8813,-1770.8011,5.4053},
{
3477.7815,-1811.6428,3.4826}
}; 
Isso coloquei em public OnPlayerCommandText(playerid,cmdtext[])

PHP код:
if(strcmp(cmdtext"/plixo"true) == 0)
    {
     if(
PlayerInfo[playerid][pProfissao] == Sequestrador){
       for(new 
0GetMaxPlayers(); i++)
       {
    if(
IsPlayerConnected(i))
    {
    
SetPlayerRaceCheckpoint(i0Checkpoints[1][1], Checkpoints[1][2], Checkpoints[1][3], Checkpoints[2][1], Checkpoints[2][2], Checkpoints[2][3], 10);
    
Stats[i] = 1;
    return 
1;
    }
    }
    }else{
    
SendClientMessage(playeridCOLOR_RED"Apenas Para Admins");
    }
    } 
isso em public OnPlayerEnterCheckpoint(playerid)

PHP код:
switch(Stats[playerid])
{
         case 
1:
         {
              
DisablePlayerRaceCheckpoint(playerid);
              
SetPlayerRaceCheckpoint(playerid0Checkpoints[2][1], Checkpoints[2][2], Checkpoints[2][3], Checkpoints[3][1], Checkpoints[3][2], Checkpoints[3][3], 10);
              
Stats[i] = 2;
              return 
1;
         }
         case 
2:
         {
              
DisablePlayerRaceCheckpoint(playerid);
              
SetPlayerRaceCheckpoint(playerid0Checkpoints[3][1], Checkpoints[3][2], Checkpoints[3][3], Checkpoints[4][1], Checkpoints[4][2], Checkpoints[4][3], 10);
              
Stats[i] = 3;
              return 
1;
         }
         case 
3:
         {
              
DisablePlayerRaceCheckpoint(playerid);
              
SetPlayerRaceCheckpoint(playerid1Checkpoints[4][1], Checkpoints[4][2], Checkpoints[4][3], Checkpoints[4][1], Checkpoints[4][2], Checkpoints[4][3]-510);
              
Stats[i] = 4;
              return 
1;
         }
         case 
4:
         {
              
DisablePlayerRaceCheckpoint(playerid);
              
GameTextForPlayer(playerid"You have won the race!!"30001);
              
GivePlayerMoney(playerid10000);
              return 
1;
         }
     }

Mais quando coloco pra compilar. o pawn para de funcionar. me ajudem ae, vlw
Reply
#2

alguem sabe ? mais ou menos no que da dando ?
Reply
#3

Isso nгo estб muito bem organizado e o problema pode ser esse ou alguma chaves que vocк se esqueceu de fechar.
Reply
#4

pawn Код:
}
     }
}
pawn Код:
}else{
Uma chave a mais
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)