SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 06/06/2020, 01:35 PM   #1
SkolPlay
Huge Clucker
 
Join Date: Aug 2016
Posts: 212
Reputation: 1
Default Erro na quantidade de pickup

Eu estou elaborando um sistema de banco, onde é criado o pickup, porem esta dando varios erros

PHP Code:
new iconebancocassino[16];
        
iconebancocassino[0] = CreatePickup(1274232226.01881697.81311008.3594);
    
iconebancocassino[1] = CreatePickup(127423, -1494.8190,920.1959,7.1875);
    
iconebancocassino[2] = CreatePickup(127423, -2655.2686,-286.7846,7.5391);
    
iconebancocassino[3] = CreatePickup(127423, -2765.1101,375.7564,6.3433);
    
iconebancocassino[4] = CreatePickup(127423, -2461.1104,134.6490,35.1719);
    
iconebancocassino[5] = CreatePickup(127423, -89.7882,1227.0748,19.7422});
    
iconebancocassino[6] = CreatePickup(1274232862.2615,2429.7737,11.0690);
    
iconebancocassino[7] = CreatePickup(1274231310.6545,328.8246,19.9141);
    
iconebancocassino[8] = CreatePickup(1274232180.0698,1285.8080,10.8203);
        
iconebancocassino[9] = CreatePickup(127423408.3289,-1542.7937,32.2734);
    
iconebancocassino[10] = CreatePickup(1274231462.5870,-1012.2725,26.8438);
    
iconebancocassino[11] = CreatePickup(1274232489.1914,-1957.4417,13.5922);
    
iconebancocassino[12] = CreatePickup(1274232302.2183,-16.2982,26.4844);
    
iconebancocassino[13] = CreatePickup(1274231893.1948,1594.0822,10.6087);
    
iconebancocassino[14] = CreatePickup(127423, -2131.1033,-2432.1909,30.6250);
    
iconebancocassino[15] = CreatePickup(1274231722.0941,-1718.6868,13.5329);
    
iconebancocassino[16] = CreatePickup(127423, -2166.1892,644.0624,1052.3750); 
pawn Code:
Erros:
(9812) : error 001: expected token: ",", but found "}"
(9827) : error 010: invalid function or declaration
(9830) : error 021: symbol already defined: "CreateDynamicObject"
(9835) : error 010: invalid function or declaration
(9862) : error 010: invalid function or declaration
(9865) : error 010: invalid function or declaration
(9870) : error 010: invalid function or declaration
(9872) : error 010: invalid function or declaration
(9875) : error 010: invalid function or declaration
(9877) : error 010: invalid function or declaration
(9881) : error 010: invalid function or declaration
(9885) : error 010: invalid function or declaration
(9892) : error 010: invalid function or declaration
(9896) : error 010: invalid function or declaration
(9900) : error 010: invalid function or declaration
(9903) : error 010: invalid function or declaration
(9905) : error 010: invalid function or declaration
(9907) : error 010: invalid function or declaration
(9909) : error 010: invalid function or declaration
(9916) : error 010: invalid function or declaration
(9924) : error 010: invalid function or declaration
(9932) : error 010: invalid function or declaration
(9942) : error 010: invalid function or declaration
(9944) : error 010: invalid function or declaration
(9946) : error 010: invalid function or declaration
(9948) : error 010: invalid function or declaration
SkolPlay is offline   Reply With Quote
Old 06/06/2020, 01:37 PM   #2
darkxdll
High-roller
 
darkxdll's Avatar
 
Join Date: Jul 2012
Location: C:\Windows\DLLs
Posts: 1,633
Reputation: 89
Default Re: Erro na quantidade de pickup

PHP Code:
new iconebancocassino[16]; 
Declarou 16 mas está utilizando 17.
__________________
Discord: darkxdll#9097

Consulte valores.
darkxdll is offline   Reply With Quote
Old 06/06/2020, 01:55 PM   #3
ThiagoiHarDz
Banned
 
Join Date: May 2020
Location: Macarani-BA
Posts: 101
Reputation: 0
Default Re: Erro na quantidade de pickup

Code:
new iconebancocassino[16];
Você está declarando a array de forma errada pois se você usa 16 tem que colocar 1 a mais então troque para esse codigo
Code:
new iconebancocassino[17];
ThiagoiHarDz is offline   Reply With Quote
Old 06/06/2020, 02:02 PM   #4
SkolPlay
Huge Clucker
 
Join Date: Aug 2016
Posts: 212
Reputation: 1
Default Re: Erro na quantidade de pickup

Fiz como vocês mandaram, mas os erros continuaram
SkolPlay is offline   Reply With Quote
Old 06/06/2020, 02:04 PM   #5
ThiagoiHarDz
Banned
 
Join Date: May 2020
Location: Macarani-BA
Posts: 101
Reputation: 0
Default Re: Erro na quantidade de pickup

Tenta trocar o 17 para 18
ThiagoiHarDz is offline   Reply With Quote
Old 06/06/2020, 02:06 PM   #6
SkolPlay
Huge Clucker
 
Join Date: Aug 2016
Posts: 212
Reputation: 1
Default Re: Erro na quantidade de pickup

Quote:
Originally Posted by ThiagoiHarDz View Post
Tenta trocar o 17 para 18
Já fiz isso, mas não resolveu
SkolPlay is offline   Reply With Quote
Old 06/06/2020, 02:11 PM   #7
darkxdll
High-roller
 
darkxdll's Avatar
 
Join Date: Jul 2012
Location: C:\Windows\DLLs
Posts: 1,633
Reputation: 89
Default Re: Erro na quantidade de pickup

Ta usando esse código aonde ? O correto é definir a variável global e criar os pickups em "OnGameModeInit"
__________________
Discord: darkxdll#9097

Consulte valores.
darkxdll is offline   Reply With Quote
Old 06/06/2020, 02:12 PM   #8
ThiagoiHarDz
Banned
 
Join Date: May 2020
Location: Macarani-BA
Posts: 101
Reputation: 0
Default Re: Erro na quantidade de pickup

Tente fazer isso

Code:
new iconebancocassino[18];
    iconebancocassino[1] = CreatePickup(1274, 23, -1494.8190,920.1959,7.1875);
    iconebancocassino[2] = CreatePickup(1274, 23, -2655.2686,-286.7846,7.5391);
    iconebancocassino[3] = CreatePickup(1274, 23, -2765.1101,375.7564,6.3433);
    iconebancocassino[4] = CreatePickup(1274, 23, -2461.1104,134.6490,35.1719);
    iconebancocassino[5] = CreatePickup(1274, 23, -89.7882,1227.0748,19.7422});
    iconebancocassino[6] = CreatePickup(1274, 23, 2862.2615,2429.7737,11.0690);
    iconebancocassino[7] = CreatePickup(1274, 23, 1310.6545,328.8246,19.9141);
    iconebancocassino[8] = CreatePickup(1274, 23, 2180.0698,1285.8080,10.8203);
        iconebancocassino[9] = CreatePickup(1274, 23, 408.3289,-1542.7937,32.2734);
    iconebancocassino[10] = CreatePickup(1274, 23, 1462.5870,-1012.2725,26.8438);
    iconebancocassino[11] = CreatePickup(1274, 23, 2489.1914,-1957.4417,13.5922);
    iconebancocassino[12] = CreatePickup(1274, 23, 2302.2183,-16.2982,26.4844);
    iconebancocassino[13] = CreatePickup(1274, 23, 1893.1948,1594.0822,10.6087);
    iconebancocassino[14] = CreatePickup(1274, 23, -2131.1033,-2432.1909,30.6250);
    iconebancocassino[15] = CreatePickup(1274, 23, 1722.0941,-1718.6868,13.5329);
    iconebancocassino[16] = CreatePickup(1274, 23, -2166.1892,644.0624,1052.3750); 
    iconebancocassino[17] = CreatePickup(1274, 23, 2226.0188, 1697.8131, 1008.3594);
PS: Tirei o 0 e coloquei no lugar o 17 e coloquei 18 na array tente fazer isso
ThiagoiHarDz is offline   Reply With Quote
Old 06/06/2020, 02:18 PM   #9
SkolPlay
Huge Clucker
 
Join Date: Aug 2016
Posts: 212
Reputation: 1
Default Re: Erro na quantidade de pickup

Quote:
Originally Posted by darkxdll View Post
Ta usando esse código aonde ? O correto é definir a variável global e criar os pickups em "OnGameModeInit"
Está sendo criado no OnGameModeInit
SkolPlay is offline   Reply With Quote
Old 06/06/2020, 02:20 PM   #10
SkolPlay
Huge Clucker
 
Join Date: Aug 2016
Posts: 212
Reputation: 1
Default Re: Erro na quantidade de pickup

Quote:
Originally Posted by ThiagoiHarDz View Post
Tente fazer isso

Code:
new iconebancocassino[18];
    iconebancocassino[1] = CreatePickup(1274, 23, -1494.8190,920.1959,7.1875);
    iconebancocassino[2] = CreatePickup(1274, 23, -2655.2686,-286.7846,7.5391);
    iconebancocassino[3] = CreatePickup(1274, 23, -2765.1101,375.7564,6.3433);
    iconebancocassino[4] = CreatePickup(1274, 23, -2461.1104,134.6490,35.1719);
    iconebancocassino[5] = CreatePickup(1274, 23, -89.7882,1227.0748,19.7422});
    iconebancocassino[6] = CreatePickup(1274, 23, 2862.2615,2429.7737,11.0690);
    iconebancocassino[7] = CreatePickup(1274, 23, 1310.6545,328.8246,19.9141);
    iconebancocassino[8] = CreatePickup(1274, 23, 2180.0698,1285.8080,10.8203);
        iconebancocassino[9] = CreatePickup(1274, 23, 408.3289,-1542.7937,32.2734);
    iconebancocassino[10] = CreatePickup(1274, 23, 1462.5870,-1012.2725,26.8438);
    iconebancocassino[11] = CreatePickup(1274, 23, 2489.1914,-1957.4417,13.5922);
    iconebancocassino[12] = CreatePickup(1274, 23, 2302.2183,-16.2982,26.4844);
    iconebancocassino[13] = CreatePickup(1274, 23, 1893.1948,1594.0822,10.6087);
    iconebancocassino[14] = CreatePickup(1274, 23, -2131.1033,-2432.1909,30.6250);
    iconebancocassino[15] = CreatePickup(1274, 23, 1722.0941,-1718.6868,13.5329);
    iconebancocassino[16] = CreatePickup(1274, 23, -2166.1892,644.0624,1052.3750); 
    iconebancocassino[17] = CreatePickup(1274, 23, 2226.0188, 1697.8131, 1008.3594);
PS: Tirei o 0 e coloquei no lugar o 17 e coloquei 18 na array tente fazer isso
Infelizmente, continuou dando os mesmos erros
SkolPlay is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Ajuda] Erro Pickup de vida BrunoMC09 Português/Portuguese 0 27/12/2014 10:05 AM
[Ajuda] Erro PickUp brunoboy Português/Portuguese 4 25/12/2012 06:04 PM
[Ajuda] Erro Pickup Marllon11 Português/Portuguese 9 09/11/2012 10:03 PM
[Ajuda] Erro Na Pickup Marllon11 Português/Portuguese 9 09/11/2012 06:26 PM
[ajuda] Almentar Quantidade de Pickup brunogysin Português/Portuguese 11 26/02/2011 12:56 PM


All times are GMT. The time now is 06:42 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.