14.06.2012, 21:04
Well, I can't find a tutorials any where, there's one, but it doesn't work, could someone help?
new
Float: PosX[MAX_PLAYERS],
Float: PosY[MAX_PLAYERS],
Float: PosZ[MAX_PLAYERS],
Float: Angle[MAX_PLAYERS]
GetPlayerPos(playerid,PosX[playerid],PosY[playerid],PosZ[playerid]);
GetPlayerFacingAngle(playerid,Angle[playerid]);
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteFloat(File,"PositionX",PosX[playerid]);
INI_WriteFloat(File,"PositionY",PosY[playerid]);
INI_WriteFloat(File,"PositionZ",PosZ[playerid]);
INI_WriteFloat(File,"Angle",Angle[playerid]);
INI_Close(File);
if(PosX[playerid] !=0 && PosY[playerid] !=0 && PosZ[playerid] !=0 && Angle[playerid] != 0)
{
SetPlayerPos(playerid,PosX[playerid],PosY[playerid],PosZ[playerid]);
SetPlayerFacingAngle(playerid,Angle[playerid]);
}
SetSpawnInfo(playerid, 0, PlayerInfo[playerid][pSkin],PosX[playerid],PosY[playerid],PosZ[playerid],Angle[playerid], 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
INI_Float("PositionX",PosX[playerid]);
INI_Float("PositionY",PosY[playerid]);
INI_Float("PositionZ",PosZ[playerid]);
INI_Float("Angle",Angle[playerid]);
C:\Users\GTW\BaseNorton V2\gamemodes\Gamemode.pwn(143) : error 001: expected token: ";", but found "-identifier-"
main() { }
//-----[Enum Playerinfo]-----
enum pInfo
{
Password,
Cash,
Kills,
Deaths,
Adminlevel,
Pskin,
}
new PlayerInfo[MAX_PLAYERS][pInfo];
new QuizAnswers[MAX_PLAYERS];
new LSPDLeader[MAX_PLAYERS];
new LSPDMember[MAX_PLAYERS];
new Float: PosX[MAX_PLAYERS],
Float: PosY[MAX_PLAYERS],
Float: PosZ[MAX_PLAYERS],
Float: Angle[MAX_PLAYERS]
main() { }
public OnGameModeInit()
{
Create3DTextLabel("24/7", COLOR_RED, 1833.4626,-1841.8864,13.5781, 40.0, 0, 0);
AddStaticPickup(1318, 1, 240.5396,117.6052,1003.2257, -1);//lspd door
AddStaticPickup(1318, 1, 252.1050,109.2321,1003.2188, -1);//lspd door