SA-MP Forums Archive
Error D: - 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: Error D: (/showthread.php?tid=251065)



Error D: - Unknown123 - 25.04.2011

pawn Код:
new string[128];
if(strcmp(inputtext, GetPVarString(playerid, "PlayerPassword", string, 65), false) != 0) //This is the line
{
Код:
error 035: argument type mismatch (argument 2)



Re: Error D: - nuriel8833 - 25.04.2011

PHP код:
new string[128];
if(
strcmp(inputtextGetPVarString(playerid), "PlayerPassword"string65), false) != 0//This is the line




Re: Error D: - Unknown123 - 25.04.2011

^ Gave me more errors


Re: Error D: - nuriel8833 - 25.04.2011

Quote:
Originally Posted by Unknown123
Посмотреть сообщение
^ Gave me more errors
For this line?


Re: Error D: - Unknown123 - 25.04.2011

Yes same line

Код:
warning 202: number of arguments does not match definition
warning 202: number of arguments does not match definition
warning 202: number of arguments does not match definition
error 035: argument type mismatch (argument 2)
error 029: invalid expression, assumed zero
warning 215: expression has no effect
error 001: expected token: ";", but found ")"
fatal error 107: too many error messages on one line



Re: Error D: - sobolanux - 25.04.2011

Use this:

Код:
new string[128]; GetPVarString(playerid, "PlayerPassword", string, 65);
if(strcmp(inputtext, string, false) != 0) //This is the line
{
The problem: GetPVarString doesn`t return a value, it just sets 'string' a new value and it returns the LENGHT of the string read.


Re: Error D: - Unknown123 - 25.04.2011

nvm
this
post