[Pedido] Warnings
#1

estou com 7 warnings na minha gm alguem pode me ajudar ?

PHP код:
 725) : warning 202number of arguments does not match definition
    AddPlayerClass
(Skin1717.2549,-1685.3021,20.2402,176.1482,0,0,0,0,0);
(
1960) : warning 219local variable "idx" shadows a variable at a preceding level
        
new idx;//criamos uma array
(4480) : warning 202number of arguments does not match definition
        SetPlayerPos
(playerid2599.7239,-1077.4510,69.5851,1.7364);
(
5194) : warning 202number of arguments does not match definition
            SetPlayerPos
(playerid,2883.3210,-1906.6184,5.9838,274.3181);
(
5215) : warning 202number of arguments does not match definition
            SetPlayerPos
(playerid,922.1794,2670.2893,66.2884,179.4914);
(
5236) : warning 202number of arguments does not match definition
            SetPlayerPos
(playerid,1567.9535,712.6862,10.8704,274.7413);
728) : warning 204symbol is assigned a value that is never used"Portao"
    
Portao CreateObject(980,-302.29998779297,1507.4000244141,71.59999474121,0,0,0); 
Reply
#2

PHP код:
 725) : warning 202number of arguments does not match definition 
    AddPlayerClass
(01717.2549,-1685.3021,20.2402,176.1482,0,0,0,0,0,0);
(
4480) : warning 202number of arguments does not match definition 
        SetPlayerPos
(playerid2599.7239,-1077.4510,69.5851); 
(
5194) : warning 202number of arguments does not match definition 
            SetPlayerPos
(playerid,2883.3210,-1906.6184,5.9838); 
(
5215) : warning 202number of arguments does not match definition 
            SetPlayerPos
(playerid,922.1794,2670.2893,66.2884); 
SetPlayerPos(playeridX,Y,Z);
728) : warning 204symbol is assigned a value that is never used"Portao" 
    
Portao CreateObject(980,-302.29998779297,1507.4000244141,71.59999474121,0,0,0);  
A Variavel nunca й usada
Reply
#3

obrigado mais falta 3 ainda
[php] (1960) : warning 219: local variable "idx" shadows a variable at a preceding level

new idx;//criamos uma array

(5236) : warning 202: number of arguments does not match definition

SetPlayerPos(playerid,1567.9535,712.6862,10.8704,2 74.7413);

(72 : warning 204: symbol is assigned a value that is never used: "Portao"

Portao = CreateObject(980,-302.29998779297,1507.4000244141,71.59999474121,0,0 ,0);
Reply
#4

Quote:
Originally Posted by VF46
Посмотреть сообщение
obrigado mais falta 3 ainda
[php] (1960) : warning 219: local variable "idx" shadows a variable at a preceding level

new idx;//criamos uma array

(5236) : warning 202: number of arguments does not match definition

SetPlayerPos(playerid,1567.9535,712.6862,10.8704,2 74.7413);

(72 : warning 204: symbol is assigned a value that is never used: "Portao"

Portao = CreateObject(980,-302.29998779297,1507.4000244141,71.59999474121,0,0 ,0);
Aviso na linha 1960 - A variбvel local "idx" jб foi declarada em alguma parte neste cуdigo/funзгo, remova o new idx; da linha 1960.

Aviso na linha 5236 - SetPlayerPos possui apenas 4 parвmetros, vocк colocou cinco. Retire o ъltimo que deve ser a rotaзгo do jogador, pra isso vocк deve usar o SetPlayerFacingAngle

Aviso na linha 728 - A variбvel/simbolo Portao nгo estб sendo usada em nenhum canto no seu cуdigo. Basta alterar e remover o "Portao = " antes do CreateObject.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)