SA-MP Forums Archive
[Solution Rqeuest] if the result is... - 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: [Solution Rqeuest] if the result is... (/showthread.php?tid=102222)



[Solution Rqeuest] if the result is... - mirkoiz - 14.10.2009

Hello,
is there any way to check, if the result is any word??

Something like " if the user types '/get money' then he will get 100$"

i just request for a solution.. because i dont think that i could do "if(result == BLAAAAAAA)" to get that...


i ask for a solution because i have many things for "/get"

Examples:
"/get car"
"/get health
"/get money"

and some more...


Friendly Greetings from :
Cookie (Germany) :P


Re: [Solution Rqeuest] if the result is... - MenaceX^ - 14.10.2009

strcmp.


Re: [Solution Rqeuest] if the result is... - mirkoiz - 14.10.2009

omg thanks.. i just saw in my script 2 secounds ago that i use this if the password is the same like in the file


Thanks

"Tested and it works "