Door move , COmpiler crash - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Door move , COmpiler crash (
/showthread.php?tid=236146)
Door move , COmpiler crash -
guagouka - 07.03.2011
Wen y finish my script the Compiler make this.
Look at my script :
pawn Код:
//new CarAutolock[999];
//new cartrack[256];
//new street_zone;
new GangCar[MAX_PLAYERS];
new tactical[MAX_PLAYERS];
new authorizetactical;
//new surenos;
//new black_yakuza;
//new nortenos;
//new jefferson_saints;
new obj;
pawn Код:
public OnGameModeInit()
{
obj = CreateObject(969,1525.21911621,-1607.69079590,12.38281250,0.00000000,0.00000000,0.00000000);
return 1;
}
new string[MAX_PLAYER_NAME];
new string1[MAX_PLAYER_NAME];
for(new c=0;c<CAR_AMOUNT;c++)
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/moveobject", true) == 0)
{
new string[50];
new movetime = MoveObject(obj,1523.5331,-1611.8778,13.5469,2.00);
format(string, sizeof(string), "Object will finish moving in %d milliseconds", movetime);
SendClientMessage(playerid, 0xFF000000, string);
return 1;
}
return 0;
}
Re: Door move , COmpiler crash -
Stigg - 07.03.2011
Код:
public OnGameModeInit()
{
obj = CreateObject(969,1525.21911621,-1607.69079590,12.38281250,0.00000000,0.00000000,0.00000000);
return 1;
}
new string[MAX_PLAYER_NAME];
new string1[MAX_PLAYER_NAME];
for(new c=0;c<CAR_AMOUNT;c++)
Them 3 lines should'nt be under GameModeInit() for a start.
Re: Door move , COmpiler crash -
Hashski - 07.03.2011
pawn Код:
public OnGameModeInit()
{
obj = CreateObject(969,1525.21911621,-1607.69079590,12.38281250,0.00000000,0.00000000,0.00000000);
return 1;
}
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/moveobject", true) == 0)
{
new string[50];
new movetime = MoveObject(obj,1523.5331,-1611.8778,13.5469,2.00);
format(string, sizeof(string), "Object will finish moving in %d milliseconds", movetime);
SendClientMessage(playerid, 0xFF000000, string);
return 1;
}
return 0;
}
Re: Door move , COmpiler crash -
guagouka - 07.03.2011
No That Dosen't work, i use GM LARP
Re: Door move , COmpiler crash -
alpha500delta - 07.03.2011
In an other topic you made you said you where using NL-RP o_O?