[help] why i have errors - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [help] why i have errors (
/showthread.php?tid=256512)
[help] why i have errors -
mariomako - 21.05.2011
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);
}
}
Re: [help] why i have errors -
DeathOnaStick - 21.05.2011
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).
Re: [help] why i have errors -
mariomako - 21.05.2011
i like to force player for command

with parameters inputtext
Re: [help] why i have errors -
mariomako - 21.05.2011
what's problem ?
Re: [help] why i have errors -
mariomako - 21.05.2011
help me
Re: [help] why i have errors -
PhantomDot1 - 21.05.2011
put the whole code on the forum so we can see it more clear, that makes it easier for us to help you
Re: [help] why i have errors -
mariomako - 21.05.2011
Код:
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