SA-MP Forums Archive
2 commands one function - 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)
+--- Thread: 2 commands one function (/showthread.php?tid=320161)



2 commands one function - SnG.Scot_MisCuDI - 21.02.2012

I cant remember for life of me how to do it. i know its like ||
pawn Код:
if(!strcmp("/moneybag", cmdtext, true)) || (!strcmp("/mb", cmdtext, true))
errors with that but thats what i mean. :/


Re: 2 commands one function - mitchboy - 21.02.2012

tried this?
Код:
if(!strcmp("/moneybag", cmdtext, true) || !strcmp("/mb", cmdtext, true))
{
}



Re: 2 commands one function - SnG.Scot_MisCuDI - 21.02.2012

simple as that lol i feel embarrassed i couldnt remember


Re: 2 commands one function - mitchboy - 21.02.2012

I started scripting again and forgot most of the things too, but now i'm getting it al back.
Nice to help you .