04.06.2016, 04:13
PHP код:
C:\Users\Dell pc\Desktop\My First Gamemode\gamemodes\PilotSa.pwn(5956) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Header size: 6816 bytes
Code size: 1413552 bytes
Data size: 1904468 bytes
Stack/heap size: 16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements: 3341220 bytes
1 Warning.
PHP код:
if(strcmp(cmd, "/createhouse", true) == 0)
{
if(!strcmp(PlayerName(playerid), "Hardik"))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_ERROR, "Syntax: /createhouse (price) (interior[1-10]) (slots)");
return 1;
}
new price; //stock AddHouse(playerid, price, interior, slots)
price = strvalEx(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_ERROR, "Syntax: /createhouse (price) (interior[1-10]) (slots)");
return 1;
}
new interior;
interior = strvalEx(tmp);
if(interior < 0 || interior > 10) { SendClientMessage(playerid, COLOR_ERROR, "Interior ID's are 1-10."); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_ERROR, "Syntax: /createhouse (price) (interior[1-10]) (slots)");
return 1;
}
new slots;
slots = strvalEx(tmp);
if(slots > 50) { SendClientMessage(playerid, COLOR_ERROR, "Maximum slots for a house is 50."); return 1; }
AddHouse(playerid, price, interior, slots);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_ERROR, "Developer's only!");
return 1;
}
}