[help] why i have errors
#1

why i have this errors:

Код:
D:\Infinity DM Stunt\gamemodes\infinitygm.pwn(511) : error 035: argument type mismatch (argument 3)
D:\Infinity DM Stunt\gamemodes\infinitygm.pwn(518) : error 035: argument type mismatch (argument 3)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
on this code:

pawn Код:
if(dialogid == DIALOG_REGISTER)
    {
        if(response)
        {
            OnPlayerCommandPerformed(playerid,"/register %s", inputtext);
        }
    }
    if(dialogid == DIALOG_LOGIN)
    {
        if(response)
        {
            OnPlayerCommandPerformed(playerid,"/login %s", inputtext);
        }
    }
Reply
#2

Quote:
Originally Posted by mariomako
Посмотреть сообщение
why i have this errors:

Код:
D:\Infinity DM Stunt\gamemodes\infinitygm.pwn(511) : error 035: argument type mismatch (argument 3)
D:\Infinity DM Stunt\gamemodes\infinitygm.pwn(518) : error 035: argument type mismatch (argument 3)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
on this code:

pawn Код:
if(dialogid == DIALOG_REGISTER)
    {
        if(response)
        {
            OnPlayerCommandPerformed(playerid,"/register %s", inputtext);
        }
    }
    if(dialogid == DIALOG_LOGIN)
    {
        if(response)
        {
            OnPlayerCommandPerformed(playerid,"/login %s", inputtext);
        }
    }
I need to see the declaration of the function/callback OnPlayerCommandPerformed(..) to help you with that. It seems like theres somewhere a string (or an integer) where there shouldnt be one (the last parameter, so 'inputtext' must be wrong somehow).
Reply
#3

i like to force player for command with parameters inputtext
Reply
#4

what's problem ?
Reply
#5

help me
Reply
#6

put the whole code on the forum so we can see it more clear, that makes it easier for us to help you
Reply
#7

Код:
if(dialogid == DIALOG_REGISTER)
	{
		if(response)
		{
		    OnPlayerCommandPerformed(playerid,"/register %s", inputtext);
		}
	}
	if(dialogid == DIALOG_LOGIN)
	{
		if(response)
		{
		    OnPlayerCommandPerformed(playerid,"/login %s", inputtext);
		}
	}
i like to force player for command
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)