Fatal Errors, Mystery to All [HELP]
#3

Код:
	if (!strcmp("/spawnveh", cmd, true)){
		if(!strlen(var1) || !strlen(var2) || !strlen(var3)){
			 SendClientMessage(playerid,COLOR_WHITE,"USAGE: /spawnveh [id][color1][color2]");
		}
		else{
			 if(strval(var1) > 399 && strval(var1) < 612){
	 			NewVehicle(playerid,strval(var1),playerX,playerY,playerZ,playerAng,strval(var2),strval(var3));
			 }
			 else{
       SendClientMessage(playerid,COLOR_WHITE,"Only IDs between 400 and 611 are valid.");
			 }
		}
		return 1;
	}
There we go. And the initialisation:

Код:
public OnGameModeInit()
{
	SetGameModeText("Alpha Testing");
  ClassInit();
	DisableInteriorEnterExits();
	AllowInteriorWeapons(1);
	//----------
	idCounter = 0;
	while(idCounter != MAXENTERS){
    EnterSigns[idCounter][UNIVERSEID] = 9999;
		idCounter++;
	}
	idCounter = 0;
	while(idCounter != MAXVEHICLES){
    Vehicles[idCounter][VEHICLEID] = 9999;
		idCounter++;
	}
	//----------
	AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
	return 1;
}
Thanks for the foward/forward. I hate it when spellings or typos screw up code. :P
Reply


Messages In This Thread
Fatal Errors, Mystery to All [HELP] - by Delphinus - 28.06.2009, 23:59
Re: Fatal Errors, Mystery to All [HELP] - by yezizhu - 29.06.2009, 02:21
Re: Fatal Errors, Mystery to All [HELP] - by Delphinus - 29.06.2009, 17:02
Re: Fatal Errors, Mystery to All [HELP] - by [nl]daplayer - 29.06.2009, 17:07
Re: Fatal Errors, Mystery to All [HELP] - by Delphinus - 29.06.2009, 17:26
Re: Fatal Errors, Mystery to All [HELP] - by yezizhu - 30.06.2009, 00:37
Re: Fatal Errors, Mystery to All [HELP] - by Delphinus - 30.06.2009, 01:25
Re: Fatal Errors, Mystery to All [HELP] - by yezizhu - 30.06.2009, 18:45

Forum Jump:


Users browsing this thread: 1 Guest(s)