12.08.2012, 15:33
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;
}
Код:
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.