help with strcmp
#2

Код:
if(strcmp(params, "remedios", true) == 0)
{
    new string[200], giveplayerid, needed, money;
    if(sscanf(params, "ddd", giveplayerid, needed, money)) return SendClientMessageEx(playerid, 0x008FECFF, "Modo de uso: {FFFFFF}/vender remedios [ID] [cantidad] [precio]");
When you do something like that, "remedios" is part of the params that will be scanned by sscanf later on. Same thing happens in most of the other parts.
Reply


Messages In This Thread
help with strcmp - by yancarlos4500 - 02.02.2014, 05:24
Re: help with strcmp - by CuervO - 02.02.2014, 05:29
Re: help with strcmp - by alex9419 - 02.02.2014, 05:31
Re: help with strcmp - by CuervO - 02.02.2014, 05:53
Re: help with strcmp - by alex9419 - 02.02.2014, 07:39
Re: help with strcmp - by yancarlos4500 - 03.02.2014, 15:04
Re: help with strcmp - by yancarlos4500 - 03.02.2014, 15:09
Re: help with strcmp - by yancarlos4500 - 03.02.2014, 18:20

Forum Jump:


Users browsing this thread: 1 Guest(s)