15.06.2015, 00:10
Digito um comando й o serve fecha serve log
PHP код:
[21:05:58] [debug] Server crashed while executing vinewoodrpg_fixed.amx
[21:05:58] [debug] AMX backtrace:
[21:05:58] [debug] #0 native fclose () from samp-server.exe
[21:05:58] [debug] #1 00006304 in ?? (763952, 502252) from vinewoodrpg_fixed.amx
[21:05:58] [debug] #2 0000ff3c in public cmd_criarcasa (0, 502240) from vinewoodrpg_fixed.amx
[21:05:58] [debug] #3 native CallLocalFunction () from samp-server.exe
[21:05:58] [debug] #4 00000544 in public OnPlayerCommandText (0, 502184) from vinewoodrpg_fixed.amx
[21:05:58] [debug] Native backtrace:
[21:05:58] [debug] #0 00497acb in ?? () from samp-server.exe
[21:05:58] [debug] #1 004056fd in ?? () from samp-server.exe
[21:05:58] [debug] #2 5d9b62ca in ?? () from plugins\crashdetect.dll
[21:05:58] [debug] #3 5d9b8b28 in ?? () from plugins\crashdetect.dll
[21:05:58] [debug] #4 5d9b09c7 in ?? () from plugins\crashdetect.dll
[21:05:58] [debug] #5 5d9b631a in ?? () from plugins\crashdetect.dll
[21:05:58] [debug] #6 61cd51a7 in ?? () from plugins\streamer.dll
[21:05:58] [debug] #7 0047441e in ?? () from samp-server.exe
[21:05:58] [debug] #8 004010b6 in ?? () from samp-server.exe
[21:05:58] [debug] #9 5d9b62ca in ?? () from plugins\crashdetect.dll
[21:05:58] [debug] #10 5d9b8b28 in ?? () from plugins\crashdetect.dll
[21:05:58] [debug] #11 5d9b09c7 in ?? () from plugins\crashdetect.dll
[21:05:58] [debug] #12 5d9b631a in ?? () from plugins\crashdetect.dll
[21:05:58] [debug] #13 61cd51a7 in ?? () from plugins\streamer.dll
[21:05:58] [debug] #14 0046dbc0 in ?? () from samp-server.exe
[21:05:58] [debug] #15 004528f0 in ?? () from samp-server.exe
[21:05:58] [debug] #16 0046e780 in ?? () from samp-server.exe
[21:05:58] [debug] #17 0049d629 in ?? () from samp-server.exe
[21:05:58] [debug] #18 0045b3aa in ?? () from samp-server.exe
[21:05:58] [debug] #19 770b6a64 in ?? () from C:\Windows\SYSTEM32\ntdll.dll
pawn Код:
CMD:criarcasa(playerid,params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,"Vocк nгo й adm!");
new HousePrice,id = HouseCount;
if(sscanf(params,"i",HousePrice)) return SendClientMessage(playerid,-1,"USAGE: /criarcasa <preзo>");
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
HInfo[id][Price] = HousePrice;
HInfo[id][Owned] = 0;
HInfo[id][XPos] = x;
HInfo[id][YPos] = y;
HInfo[id][ZPos] = z;
HInfo[id][VirtualWorld] = GetPlayerVirtualWorld(playerid);
format(HInfo[id][Owner],24,"Nonusablenameforthishouse");
SendClientMessage(playerid,-1,"House created");
HouseEnter[id] = CreateDynamicCP(x,y,z,1.5,GetPlayerVirtualWorld(playerid));
HouseExit[id] = CreateDynamicCP(443.9237,509.4609,1001.4195,1.5,GetPlayerVirtualWorld(playerid));
new file[40],labelstring[100];
format(file,sizeof(file),"FHouse/Houses/%i.ini",id);
DOF2_CreateFile(file);
DOF2_SetInt(file,"Price",HousePrice);
DOF2_SetInt(file,"Owned",0);
DOF2_SetInt(file,"VirtualWorld",GetPlayerVirtualWorld(playerid));
DOF2_SetFloat(file,"XPos",x);
DOF2_SetFloat(file,"YPos",y);
DOF2_SetFloat(file,"ZPos",z);
DOF2_SetString(file,"Owner","Nonusablenameforthishouse");
DOF2_SaveFile();
format(labelstring,sizeof(labelstring),"Owned: No \nPrice: %i",HousePrice);
HInfo[id][HouseLabel] = Create3DTextLabel(labelstring,0xFF0000FF,x,y,z,25.0,GetPlayerVirtualWorld(playerid));
HouseCount++;
return 1;
}