28.04.2009, 10:38
Hi guys, my server crashes sometimes, and sometimes not when using the command /a or /b
these are the codes
Heres the Object[playerid]:
Does anybody know why it crashes my server? No client crash but server crash, sometimes it works
sometimes not.
Thnx!
these are the codes
pawn Код:
dcmd_a(playerid,params[])
{
new Float:X, Float:Y, Float:Z;
GetObjectPos(Object[playerid], X, Y, Z);
SetObjectPos(Object[playerid], X, Y, Z+0.25);
return 1;
}
pawn Код:
dcmd_b(playerid,params[])
{
new Float:X, Float:Y, Float:Z;
GetObjectPos(Object[playerid], X, Y, Z);
SetObjectPos(Object[playerid], X, Y, Z-0.25);
return 1;
}
pawn Код:
ObjectID[playerid] = strval(params);
Object[playerid] = CreateObject(ObjectID[playerid], X, Y, Z, 0, 0, 0);
sometimes not.
Thnx!