[Ajuda] Dialog Inventario
#1

PHP код:
C:\Users\Usuario\Desktop\SV\gamemodes\TEST.pwn(1420) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
1 Error

OQUE TEM DE ERRADO
PHP код:
public OnDialogResponse(playeriddialogidlistitem){
    switch(
dialogid) {
        case 
DIALOG_COMPRAR_INVENTARIO: {
            switch(
listitem) {
                case 
0: {
                    
pInfo[playerid][pMochila] = 1;
                    
pInfo[playerid][pMochilaAtiva] = true;
                    return 
true;
                }
                case 
1: {
                    
pInfo[playerid][pMochila] = 2;
                    
pInfo[playerid][pMochilaAtiva] = true;
                    return 
true;
                }
                case 
2: {
                    
pInfo[playerid][pMochila] = 3;
                    
pInfo[playerid][pMochilaAtiva] = true;
                    return 
true;
                }
            }
        }
    }
    return 
1;

Reply
#2

Esta faltando parвmetros da callback.

https://sampwiki.blast.hk/wiki/OnDialogResponse_PT
Reply
#3

Mals comentei errado... :/

oque eu tinha dito n fazia o menor sentido com o erro...

Mals.
Reply
#4

Quote:
Originally Posted by riajedA
Посмотреть сообщение
Esta faltando parвmetros da callback.

https://sampwiki.blast.hk/wiki/OnDialogResponse_PT
OQUE Esta Faltando nao esta faltando nada '-'
Reply
#5

Qual й a linha exata 1420 aн nesse code?
Reply
#6

PHP код:
public OnDialogResponse(playeriddialogidlistitem){ 
Reply
#7

Quote:
Originally Posted by JuniorTheDM
Посмотреть сообщение
PHP код:
public OnDialogResponse(playeriddialogidlistitem){ 
Mude para :

PHP код:
public OnDialogResponse(playeriddialogidresponselistiteminputtext[]) 
Reply
#8

PHP код:
public OnDialogResponse(playeriddialogidresponselistiteminputtext[]) 
Reply
#9

Quote:
Originally Posted by JuniorTheDM
Посмотреть сообщение
OQUE Esta Faltando nao esta faltando nada '-'
Difнcil mesmo й nem se quer abrir o link e comparar os parвmetros que estas usando com os que estгo na wiki...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)