04.09.2011, 13:53
Pessoal eu sou um pouco curioso mais to tentando criar
um gm DeathMather mais ta dando ums erros na hora de copilar
eu nгo entendo muito disso, mais agredeceria pela ajuda
pois quem assim poder levara os credito tambem no gm nгo e muito
mais e so o que posso fazer
um gm DeathMather mais ta dando ums erros na hora de copilar
eu nгo entendo muito disso, mais agredeceria pela ajuda
pois quem assim poder levara os credito tambem no gm nгo e muito
mais e so o que posso fazer
PHP код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#include <a_objects>
#define BLUE_COLOR 0x0000BBAA // blue
#define COLOR_RED 0xAA3333AA //red
#define TEAM_VAGOS 1
#define TEAM_RIFAS 2
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" MOTEL ROOM SERVICE 2");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" MOTEL ROOM SERVICE 2");
print("----------------------------------\n");
}
#endif
public OnGameModeInit()
{
UsePlayerPedAnims();
// Don't use these lines if it's a filterscript
SetGameModeText("Motel Room Service 2");
("NextMission",6000000,false); // 10 minutes
EnableStuntBonusForAll(0);
DisableInteriorEnterExits();
AddPlayerClass(110,2221.7461,-1150.8047,1025.7969,5.2542,9,0,31,500,24,210); // Rifas
AddPlayerClass(116,2196.7427,-1142.4862,1029.7969,131.4822,9,0,31,500,24,210); // Vagos
CreateObject(2041, 2226.0571289063, -1144.3226318359, 1025.0018310547, 0, 0, 0);
CreateObject(2041, 2225.8044433594, -1144.3369140625, 1025.0018310547, 0, 0, 0);
CreateObject(2358, 2224.0732421875, -1141.162109375, 1024.9134521484, 0, 0, 0);
CreateObject(2358, 2224.0666503906, -1141.1571044922, 1025.1578369141, 0, 0, 0);
CreateObject(2358, 2224.0681152344, -1141.2192382813, 1025.4022216797, 0, 0, 0);
CreateObject(2358, 2224.0314941406, -1141.3405761719, 1025.6466064453, 0, 0, 0);
CreateObject(2358, 2223.3271484375, -1141.6824951172, 1024.9134521484, 0, 0, 0);
CreateObject(2358, 2223.3283691406, -1141.6313476563, 1025.1578369141, 0, 0, 0);
CreateObject(2358, 2223.3395996094, -1141.5260009766, 1025.4022216797, 0, 0, 0);
CreateObject(2358, 2223.3771972656, -1141.4587402344, 1025.6466064453, 0, 0, 0);
CreateObject(2359, 2224.9545898438, -1141.4967041016, 1025.0072021484, 0, 0, 0);
CreateObject(2359, 2224.9487304688, -1142.0366210938, 1025.0072021484, 0, 0, 0);
CreateObject(2985, 2223.7863769531, -1142.9312744141, 1024.796875, 0, 0, 250);
CreateObject(2985, 2199.8796386719, -1144.0770263672, 1028.796875, 0, 0, 178);
CreateObject(2969, 2200.4008789063, -1145.8872070313, 1028.9232177734, 0, 0, 0);
CreateObject(2969, 2200.2390136719, -1145.833984375, 1029.2075195313, 0, 0, 0);
CreateObject(2969, 2199.4565429688, -1145.8480224609, 1028.9232177734, 0, 0, 0);
CreateObject(2969, 2199.3049316406, -1145.783203125, 1029.2075195313, 0, 0, 0);
CreateObject(2969, 2198.6232910156, -1145.7962646484, 1028.9232177734, 0, 0, 0);
CreateObject(2969, 2198.46484375, -1145.7470703125, 1029.2075195313, 0, 0, 0);
CreateObject(2969, 2199.2067871094, -1145.8450927734, 1029.4918212891, 0, 0, 0);
CreateObject(1550, 2199.4033203125, -1145.1184082031, 1029.1901855469, 0, 0, 0);
CreateObject(1550, 2198.7543945313, -1145.1719970703, 1029.1901855469, 0, 0, 0);
CreateObject(1550, 2198.5354003906, -1145.6531982422, 1029.7587890625, 0, 0, 0);
CreateObject(1575, 2201.2526855469, -1145.7843017578, 1029.3492431641, 0, 0, 0);
CreateObject(1575, 2199.7893066406, -1144.7348632813, 1028.9992675781, 0, 0, 0);
CreateObject(1575, 2199.51171875, -1144.6600341797, 1029.3046875, 0, 0, 0);
CreateObject(1575, 2198.8190917969, -1144.4714355469, 1028.9992675781, 0, 0, 0);
CreateObject(1712, 2193.1145019531, -1188.5404052734, 1028.796875, 0, 0, 270)
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, -1889.18,18.0183,38.2361);
SetPlayerInterior(playerid, 0);
SetPlayerFacingAngle(playerid, 180);
SetPlayerCameraPos(playerid, -1889.2936,13.7995,38.2361);
SetPlayerCameraLookAt(playerid, -1889.1069,18.1730,39.0669);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_HANDSUP);
return 1;
}
public OnPlayerConnect(playerid)
{
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,"%s has joined the server. Welcome!",Name);
SendClientMessageToAll(0xFFFFFFAA,string);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
new
string[64],
name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
switch(reason)
{
case 0: format(string,sizeof string,"%s left the server. (Timed out)",name);
case 1: format(string,sizeof string,"%s left the server. (Leaving)",name);
case 2: format(string,sizeof string,"%s left the server. (Kicked/Banned)",name);
}
SendClientMessageToAll(0xFFFFFFAA,string);
return 1;
}
public OnPlayerSpawn(playerid)
{
ClearAnimations(playerid);
ApplyAnimation(playerid, "CARRY", "crry_prtial", 2.0, 0, 0, 0, 0, 0);
PlayerPlaySound(playerid,1186,162.9307,-25.8189,1.5781);
PlayerPlaySound(playerid,1186,-107.5323,-219.7684,2.0466);
SetPlayerCheckpoint(playerid, 244.6853,-54.9326,1.5776,1.0);
SetPlayerWeather(playerid, 1);
new PlayerName[MAX_PLAYER_NAME],
string[128];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
format(string, sizeof(string), "%s has spawned.", PlayerName);
SendClientMessageToAll(0xFFFFFFFF, string);
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(killerid, playerid, reason);
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}
return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}
public OnRconCommand(cmd[])
{
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public OnObjectMoved(objectid)
{
return 1;
}
public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}
public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}
public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}
public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}
public OnPlayerExitedMenu(playerid)
{
return 1;
}
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}
public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}
public OnPlayerUpdate(playerid)
{
return 1;
}
public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}
public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}
public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}
public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
return 1;
}
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}
PHP код:
D:\Documents and Settings\Marcos Lima\Desktop\123.pwn(48) : warning 217: loose indentation
D:\Documents and Settings\Marcos Lima\Desktop\123.pwn(50) : warning 215: expression has no effect
D:\Documents and Settings\Marcos Lima\Desktop\123.pwn(90) : error 001: expected token: ";", but found "}"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.