Errors with a cmd
#1

pawn Код:
CMD:chouse(playerid, params[])
{
    if(PlayerInfo[playerid][Padmin] >=4)
    {
        new id = HouseCount, interior, Float:X, Float:Y, Float:Z, string[128];
        if(sscanf(params,"i",interior)) return SendClientMessage(playerid, COLOR_GREEN, "USAGE: /chouse <interior>");
        GetPlayerPos(playerid, X, Y, Z);
        HouseInfo[id][Interior] = interior;
        HouseInfo[id][Owned] = 0;
        HouseInfo[id][XPos] = X;
        HouseInfo[id][YPos] = Y;
        HouseInfo[id][ZPos] = Z;
        SendClientMessage(playerid, COLOR_GREEN, "You have created a house!");
        HouseEnterPickup[id]  = CreatePickup(1273,23,X,Y,Z,-1);
        new INI:file = INI_Open(HousePath(playerid));
        INI_Open(file);//Opening the file with SII.
        INI_WriteInt("Interior",interior);
        INI_WriteInt("Owned",0);
        INI_WriteFloat("XPos",X);
        INI_WriteFloat("YPos",Y);
        INI_WriteFloat("ZPos",Z);
        INI_WriteString("Owner",HouseInfo[id][Owner]);
        INI_Close(file);
        HouseCount++;
        return 1;
    }
    return 1;
}
Im using YINI and please could you explain what i have done wrong

Код:
C:\Users\iphone\Desktop\SFCNR\gamemodes\Sfcnr.pwn(2884) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\iphone\Desktop\SFCNR\gamemodes\Sfcnr.pwn(2884) : warning 215: expression has no effect
C:\Users\iphone\Desktop\SFCNR\gamemodes\Sfcnr.pwn(2884) : error 001: expected token: ";", but found ")"
C:\Users\iphone\Desktop\SFCNR\gamemodes\Sfcnr.pwn(2884) : error 029: invalid expression, assumed zero
C:\Users\iphone\Desktop\SFCNR\gamemodes\Sfcnr.pwn(2884) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply


Messages In This Thread
Errors with a cmd - by thefatshizms - 12.08.2012, 15:33
Re: Errors with a cmd - by thefatshizms - 12.08.2012, 16:28
Re: Errors with a cmd - by Faisal_khan - 12.08.2012, 16:30
Re: Errors with a cmd - by thefatshizms - 12.08.2012, 16:32
Re: Errors with a cmd - by kickerbat - 12.08.2012, 16:33
Re: Errors with a cmd - by Faisal_khan - 12.08.2012, 16:35
Re: Errors with a cmd - by thefatshizms - 12.08.2012, 16:37
Re: Errors with a cmd - by Faisal_khan - 12.08.2012, 16:43
Re: Errors with a cmd - by thefatshizms - 12.08.2012, 17:08
Re: Errors with a cmd - by thefatshizms - 12.08.2012, 17:44

Forum Jump:


Users browsing this thread: 1 Guest(s)