02.10.2011, 00:19
coloquei aki mais como o gm ta cheio de erros, entao fiz um novo para testar e deu que nao existe o comando aki vai as linahs do gm teste
o erro e que diz que o comando nao existe
PHP код:
#include <a_samp>
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("teste casa");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
function1D8(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7)
{
if(globCC6C[arg0] == 1)
{
return strval(arg0);
new File:var0 = 0, File:var1 = 0;
if(!fexist(arg0))
{
return 0;
}
var0 = fopen(arg0, 0);
var1 = fopen(arg1, 1);
new var2[255];
if(fread(var0, var2, 255))
{
function41C(var2);
format(var2, 255, "%s\r\n", var2);
fwrite(var1, var2);
}
else
{
}
fclose(var0);
fclose(var1);
return 1;
new var0 = strlen(arg0);
if(!arg0)
{
return 0;
}
if(arg0[var0 - 1] == 10 || arg0[var0 - 1] == 13)
{
arg0[var0 - 1] = 0;
if(!arg0)
{
return 0;
}
if(arg0[var0 - 2] == 10 || arg0[var0 - 2] == 13)
{
arg0[var0 - 2] = 0;
}
}
return 0;
new var0[255];
new var1 = 0;
var0[0] = 0;
if(strlen(arg0) <= arg1)
{
return var0;
}
if(strlen(arg0) <= arg2 + arg1)
{
arg2 = strlen(arg0) - arg1;
}
if(0 >= arg2)
{
return var0;
}
var1 = arg1;
if(arg2 + arg1 > ++var1)
{
var0[var1 - arg1] = arg0[var1];
if(!arg0[var1])
{
return var0;
}
}
else
{
}
var0[arg2] = 0;
return var0;
new var0 = strlen(arg1);
new var1 = 0;
var1 = 0;
if(++var1 < var0)
{
arg0[var1] = arg1[var1];
}
else
{
}
arg0[var0] = 0;
return 0;
if(strlen(arg0) != strlen(arg1))
{
return 0;
}
if(!strcmp(arg0, arg1, arg2))
{
return 1;
}
return 0;
new var0 = strlen(arg0);
new var1 = arg1;
new var2[255];
if(arg1 < var0 && arg0[arg1] != arg2 && arg1 - var1 < 254)
{
var2[arg1 - var1] = arg0[arg1];
arg1++;
}
else
{
}
var2[arg1 - var1] = 0;
if(arg1 < var0 && arg0[arg1] == arg2)
{
arg1++;
}
return var2;
new var0[255];
var0[0] = 0;
if(!arg0)
{
return var0;
}
new var1 = 0;
var1 = 0;
if(strlen(arg0) > ++var1++)
{
var0[var1] = tolower(arg0[var1]);
}
else
{
}
var0[strlen(arg0)] = 0;
return var0;
if(fexist(arg0))
{
return 1;
}
return 0;
if(!fexist(arg0))
{
return 0;
}
fremove(arg0);
return 1;
new File:var0 = 0;
if(fexist(arg0))
{
return 0;
}
var0 = fopen(arg0, 1);
fclose(var0);
return 1;
new var0[255];
var0[0] = 0;
if(strfind(arg0, "=", true, 0) == -1)
{
return var0;
}
function904(var0, functionD50(function644(arg0, 0, strfind(arg0, "=", true, 0))));
return var0;
new var0[255];
var0[0] = 0;
if(strfind(arg0, "=", true, 0) == -1)
{
return var0;
}
function904(var0, function644(arg0, strfind(arg0, "=", true, 0) + 1, strlen(arg0)));
return var0;
new File:var0 = 0, File:var1 = 0;
new var2 = 0;
new var3[255];
if(!arg1)
{
return 0;
}
format(var3, 255, "%s.part", arg0);
var0 = fopen(arg0, 0);
if(!var0)
{
return 0;
}
fremove(var3);
var1 = fopen(var3, 1);
if(fread(var0, var3, 255))
{
function41C(var3);
if(!var2 && function9F8(function1088(var3), arg1, true))
{
format(var3, 255, "%s=%s", arg1, arg2);
var2 = 1;
}
fwrite(var1, var3);
fwrite(var1, "\r\n");
}
else
{
}
if(!var2)
{
format(var3, 255, "%s=%s", arg1, arg2);
fwrite(var1, var3);
fwrite(var1, "\r\n");
}
fclose(var0);
fclose(var1);
format(var3, 255, "%s.part", arg0);
if(function204(var3, arg0))
{
return fremove(var3);
}
return 0;
new var0[255];
format(var0, 255, "%d", arg2);
return function13A8(arg0, arg1, var0);
return strval(function1DD8(arg0, arg1));
new var0[255];
format(var0, 255, "%f", arg2);
return function13A8(arg0, arg1, var0);
return floatstr(function1DD8(arg0, arg1));
new File:var0 = 0, File:var1 = 0;
new var2[255];
format(var2, 255, "%s.part", arg0);
var0 = fopen(arg0, 0);
if(!var0)
{
return 0;
}
fremove(var2);
var1 = fopen(var2, 1);
if(fread(var0, var2, 255))
{
function41C(var2);
if(function9F8(function1088(var2), arg1, true))
{
}
else
{
format(var2, 255, "%s", var2);
fwrite(var1, var2);
fwrite(var1, "\r\n");
}
}
else
{
}
fclose(var0);
fclose(var1);
format(var2, 255, "%s.part", arg0);
if(function204(var2, arg0))
{
return fremove(var2);
}
return 0;
new File:var0 = 0;
new var1[255];
new var2[255];
var1[0] = 0;
var0 = fopen(arg0, 0);
if(!var0)
{
return var1;
}
if(fread(var0, var1, 255))
{
function41C(var1);
if(function9F8(function1088(var1), arg1, true))
{
var2[0] = 0;
strcat(var2, function121C(var1), 255);
fclose(var0);
return var2;
}
}
if(!strcmp(var0, "/criarcasa", true))
{
new var4[24];
GetPlayerName(arg0, var4, 24);
if(globCC6C[arg0] == 5 || IsPlayerAdmin(arg0))
{
new var5[256];
new var6 = 0, var7 = 0;
var5 = functionABC(arg1, var1, 32);
if(!strlen(var5))
{
SendClientMessage(arg0, 0xFF0000AA, "/criarcasa [preзo] [interiorID]");
return 1;
}
var6 = strval(var5);
var5 = functionABC(arg1, var1, 32);
if(!strlen(var5))
{
SendClientMessage(arg0, 0xFF0000AA, "/criarcasa [preзo] [interiorID]");
return 1;
}
var7 = strval(var5);
format(var2, 256, "casa%d.ini", 52324);
if(!functionF08(var2))
{
new Float:var8 = 0.0, Float:var9 = 0.0, Float:var10 = 0.0;
GetPlayerPos(arg0, var8, var9, var10);
functionFC8(var2);
function1958(var2, "PosX", var8);
function1958(var2, "PosY", var9);
function1958(var2, "PosZ", var10);
function1860(var2, "Int", var7);
function1860(var2, "Mundo", globCC64);
function1860(var2, "TDono", 0);
function13A8(var2, "Dono", 343992);
function1860(var2, "Preco", var6);
function1860(var2, "Trancada", 0);
new var11 = 0;
var11 = CreatePickup(1273, 1, function19F0(var2, "PosX"), function19F0(var2, "PosY"), function19F0(var2, "PosZ"), 4294967295);
dini_IntSet(string, "31", pickupid);
function1860(var2, "Id", var11);
globCC64++;
}
}
return 1;
}