COMMAND:whupgrade(playerid)
{
if(PlayerInfo[playerid][ranklvl] > 0) return SendClientError(playerid, CANT_USE_CMD);
new wh = IsAtOwnWareHouse(playerid);
WareHouseLoop(t)
{
if(IsPlayerInSphere(playerid, WareHouse[t][WareHouse_x], WareHouse[t][WareHouse_y], WareHouse[t][WareHouse_z], 5))
{
if(wh < 1) return SendClientError(playerid, "You are not outside your own faction warehouse");
ShowPlayerDialog(playerid, 60, DIALOG_STYLE_LIST, ":: Faction Warehouse upgrade ::", "{ffffff}Level 1 ({ff0000}FREE{ffffff})\nLevel 2 ({ff0000}$1,000,000{ffffff})\nLevel 3 ({ff0000}$3,000,000{ffffff})\nLevel 4 ({ff0000}$10,000,000{ffffff})\nLevel 5 ({ff0000}$25,000,000{ffffff})\nLevel 6 ({ff0000}$40,000,000{ffffff})", "Select", "Exit");
}
}
return 1;
}
[01:14:06] *** IRC_OnConnect: Bot ID 3 connected! [01:14:10] [debug] Server crashed while executing IM.amx [01:14:10] [debug] AMX backtrace: [01:14:10] [debug] #0 native fwrite () from samp-server.exe [01:14:10] [debug] #1 00006418 in ?? (429640, 6501504, 7039460) from IM.amx [01:14:10] [debug] #2 00006688 in ?? (429640, 6501504, 65799) from IM.amx [01:14:10] [debug] #3 000a4214 in ?? (1) from IM.amx [01:14:10] [debug] #4 000a97c8 in public AddToWareHouse (1) from IM.amx [01:14:11] [debug] Native backtrace: [01:14:11] [debug] #0 77659f83 in ?? () from C:\Windows\SYSTEM32\ntdll.dll [01:14:11] [debug] #1 00498bb8 in ?? () from samp-server.exe [01:14:11] [debug] #2 0040531e in ?? () from samp-server.exe
COMMAND:whupgrade(playerid, params[])
What is your command processor? ZCMD? If it is ZCMD, then change the first line to this one.
pawn Код:
|
native fwrite
in public AddToWareHouse