Need some help - 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: Need some help (
/showthread.php?tid=274632)
Need some help -
zombieking - 06.08.2011
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")
Re: Need some help -
=WoR=Varth - 06.08.2011
pawn Код:
if(!strcmp(inputtext,"lol")
https://sampwiki.blast.hk/wiki/Strcmp
Re: Need some help -
zombieking - 06.08.2011
MAN THANK YOU , I LOVE YOU (NO GAY)