Error D:
#1

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)
Reply
#2

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

Reply
#3

^ Gave me more errors
Reply
#4

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

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
Reply
#6

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.
Reply
#7

nvm
this
post
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)