sscanf problem.
#7

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/createhouse", cmdtext, true, 10) == 0)
    {
        if(IsPlayerAdmin(playerid))
        {
            new Float:x,Float:y,Float:z;
            new HousePrice,id = HouseCount;
            GetPlayerPos(playerid,x,y,z);
            if(sscanf(cmdtext,"i",HousePrice)) return SendClientMessage(playerid,-1,"USAGE: /createhouse <price>");
            HInfo[id][Price] = HousePrice;
            HInfo[id][XPos] = x;
            HInfo[id][YPos] = y;
            HInfo[id][ZPos] = z;
            HInfo[id][VirtualWorld] = GetPlayerVirtualWorld(playerid);
            CreatePickup(1278,1,HInfo[id][XPos],HInfo[id][YPos],HInfo[id][ZPos],-1);
        }
        return 1;
    }
Reply


Messages In This Thread
sscanf problem. - by TaLhA XIV - 14.08.2012, 06:58
Re: sscanf problem. - by IceMeteor - 14.08.2012, 07:01
Re: sscanf problem. - by TaLhA XIV - 14.08.2012, 07:02
Re: sscanf problem. - by lamarr007 - 14.08.2012, 07:05
Re: sscanf problem. - by ryansheilds - 14.08.2012, 07:43
Re: sscanf problem. - by CROSS_Hunter - 14.08.2012, 09:55
Re: sscanf problem. - by Cxnnor - 14.08.2012, 10:00
Re: sscanf problem. - by JaKe Elite - 14.08.2012, 10:02
Re: sscanf problem. - by [MM]RoXoR[FS] - 14.08.2012, 10:02

Forum Jump:


Users browsing this thread: 1 Guest(s)