21.01.2013, 05:17
Crash report | /object
100 objects doesn't crash
In this example there are 200 objects with same modelid, if you create random modelid, crash will not exist
100 objects doesn't crash
In this example there are 200 objects with same modelid, if you create random modelid, crash will not exist
Код:
#include <a_samp> main(){} public OnPlayerSpawn(playerid) SetPlayerPos(playerid,2464.4021,3256.3306,5.9844); public OnGameModeInit() AddPlayerClass(1,488.1703,-14.2043,1000.6797,17.7887,-1,-1,-1,-1,-1,-1); public OnPlayerRequestClass(playerid,classid) { SetSpawnInfo(playerid,255,1,2464.4021,3256.3306,5.9844,1.0,-1,-1,-1,-1,-1,-1); SpawnPlayer(playerid); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext,"/object")==0) { for(new i=0;i<200;i++) CreatePlayerObject(playerid,8357, 2616.6+random(100),2929.53+random(100),5, 0.00,0.00,90.00, 0); return 1; } return 0; }