[Ajuda] Alguem
#1

Pode me dizer
onde esta meu erro?

PHP код:
new Float:DrogasLS[3][4] = {
    {
        -
1118.7178,-1650.2025,76.3672,92.856810.0},
    {
        -
1209.1139,-1192.7333,129.2188,91.733210.0}};
        
new 
Float:DrogasSF[3][4] = {
    {
        -
1301.6755,-7.1920,14.1484,141.992510.0},
    {
        -
1348.2963,508.2138,18.2344,98.623810.0},
    {
        -
2981.4458,472.5984,4.9141,92.115510.0}};
new 
Float:DrogasLV[3][4] = {
    {
        -
269.3152,1511.3184,75.5625,303.359710.0},
    {
        -
9.1879,2016.4657,17.4559,347.629910.0},
    {
        
1486.6718,1530.5186,10.8125,47.941910.0}}; 
PHP код:
new rand;
if (
strcmp(cmd"/entregals"true) == 0)
    {
        if(
PlayerInfo[playerid][pEmprego] != 9)
        {
            
SendClientMessage(playeridCOLOR_GREY"Vocк Nгo й um Transportador de Drogas");
            return 
true;
        }
        if(
var1[playerid] != 0)
        {
            
SendClientMessage(playeridCOLOR_GREY"Vocк Deve Esperar 5 Minutos Para Entregar De Novo !");
            return 
true;
        }
        if(
TruckMission[playerid] != 0)
        {
            
SendClientMessage(playeridCOLOR_GREY"Vocк Deve Entregas as Drogas Primeiro !");
            return 
true;
        }
        if(!
PlayerToPoint(60.0 ,playerid, -71.5407,-1123.4725,1.6677))
        {
            
SendClientMessage(playeridCOLOR_GREY"Vocк Precisa Estб na Base Para Poder Transportar");
            return 
true;
        }
        
rand random(sizeof(DrogasLS));
        
SetPlayerCheckpoint(playeridDrogasLS[rand][0],DrogasLS[rand][1],DrogasLS[rand][2]));
        
SetPlayerFacingAngle(playeridDrogasLS[rand][3]);
        
TruckMission[playerid] = 2;
        
SendClientMessage(playeridCOLOR_LIGHTBLUE"Entregue as Drogas no Local Indicado No Mapa !");
        return 
true;
    } 
Deu Este Erro:
PHP код:
error 001expected token";"but found ")" 
Reply
#2

pawn Код:
SetPlayerCheckpoint(playerid, DrogasLS[rand][0],DrogasLS[rand][1],DrogasLS[rand][2]);
Reply
#3

Quote:
Originally Posted by mau.tito
Посмотреть сообщение
pawn Код:
SetPlayerCheckpoint(playerid, DrogasLS[rand][0],DrogasLS[rand][1],DrogasLS[rand][2]);
OMG, vocк deveria prestar mais atenзгo neh leke?
Reply
#4

Seu erro esta em:
pawn Код:
new Float:DrogasLS[3][4]
Float:DrogasSF[3][4]
Float:DrogasLV[3][4]
Float sгo 3 !
Modo de uso correto para random e :
pawn Код:
new Float:DrogasLS[][3]
Float:DrogasSF[][3]
Float:DrogasLV[][3]
/\ Sem aquela ultima opзгo , mas como a ultima opзгo usa ponto (.) e considerado Float entгo poderas em vez do 3 que lhe mostrei usar 4 .

Att DonSpeed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)