Errors with a cmd
#2

soz fro double post but i havemanaged to get errors away.. but now i got tag mismath
Код:
C:\Users\iphone\Desktop\SFCNR\gamemodes\Sfcnr.pwn(2888) : error 035: argument type mismatch (argument 1)
C:\Users\iphone\Desktop\SFCNR\gamemodes\Sfcnr.pwn(2889) : error 035: argument type mismatch (argument 1)
C:\Users\iphone\Desktop\SFCNR\gamemodes\Sfcnr.pwn(2890) : error 035: argument type mismatch (argument 1)
C:\Users\iphone\Desktop\SFCNR\gamemodes\Sfcnr.pwn(2891) : error 035: argument type mismatch (argument 1)
C:\Users\iphone\Desktop\SFCNR\gamemodes\Sfcnr.pwn(2892) : error 035: argument type mismatch (argument 1)
C:\Users\iphone\Desktop\SFCNR\gamemodes\Sfcnr.pwn(2893) : error 035: argument type mismatch (argument 1)
C:\Users\iphone\Desktop\SFCNR\gamemodes\Sfcnr.pwn(2894) : warning 202: number of arguments does not match definition
C:\Users\iphone\Desktop\SFCNR\gamemodes\Sfcnr.pwn(2900) : warning 203: symbol is never used: "HouseExit"
C:\Users\iphone\Desktop\SFCNR\gamemodes\Sfcnr.pwn(2900) : warning 203: symbol is never used: "PlayerInHouseID"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Errors.
pawn Код:
CMD:chouse(playerid, params[])
{
    if(PlayerInfo[playerid][Padmin] >=4)
    {
        new id = HouseCount, interior;
        if(sscanf(params,"i",interior)) return SendClientMessage(playerid, COLOR_GREEN, "USAGE: /chouse <interior>");
        new Float:X, Float:Y, Float:Z;
        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;
        SCM(playerid, COLOR_GREEN, "You have created a house!");
        HouseEnterPickup[id]  = CreatePickup(1273,23,X,Y,Z,-1);
        new file[40];
        format(file,sizeof(file),"Sfcnr/Users/Houses/%i.ini",id);
        INI_Open(file);
        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();
        HouseCount++;
        return 1;
    }
    return 1;
}
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: 2 Guest(s)