Need some help
#1

OK so this is my code:

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid==1 && response==0)
    {
        if(strcmp(inputtext=="lol")
        {

            SendClientMessage(playerid,red,"Logged in");
        }
        else
        {
            SendClientMessage(playerid,red,"fucker");
    }
}
}
But when I try to complie it , it give this error:

Код:
D:\sv2\pawno\ascript.pwn(255) : error 033: array must be indexed (variable "inputtext")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Line 255 is :

pawn Код:
if(strcmp(inputtext=="lol")
Reply
#2

pawn Код:
if(!strcmp(inputtext,"lol")
https://sampwiki.blast.hk/wiki/Strcmp
Reply
#3

MAN THANK YOU , I LOVE YOU (NO GAY)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)