Ajuda Com Meu Primeiro GM
#1

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

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(20412226.0571289063, -1144.32263183591025.0018310547000);
    
CreateObject(20412225.8044433594, -1144.33691406251025.0018310547000);
    
CreateObject(23582224.0732421875, -1141.1621093751024.9134521484000);
    
CreateObject(23582224.0666503906, -1141.15710449221025.1578369141000);
    
CreateObject(23582224.0681152344, -1141.21923828131025.4022216797000);
    
CreateObject(23582224.0314941406, -1141.34057617191025.6466064453000);
    
CreateObject(23582223.3271484375, -1141.68249511721024.9134521484000);
    
CreateObject(23582223.3283691406, -1141.63134765631025.1578369141000);
    
CreateObject(23582223.3395996094, -1141.52600097661025.4022216797000);
    
CreateObject(23582223.3771972656, -1141.45874023441025.6466064453000);
    
CreateObject(23592224.9545898438, -1141.49670410161025.0072021484000);
    
CreateObject(23592224.9487304688, -1142.03662109381025.0072021484000);
    
CreateObject(29852223.7863769531, -1142.93127441411024.79687500250);
    
CreateObject(29852199.8796386719, -1144.07702636721028.79687500178);
    
CreateObject(29692200.4008789063, -1145.88720703131028.9232177734000);
    
CreateObject(29692200.2390136719, -1145.8339843751029.2075195313000);
    
CreateObject(29692199.4565429688, -1145.84802246091028.9232177734000);
    
CreateObject(29692199.3049316406, -1145.7832031251029.2075195313000);
    
CreateObject(29692198.6232910156, -1145.79626464841028.9232177734000);
    
CreateObject(29692198.46484375, -1145.74707031251029.2075195313000);
    
CreateObject(29692199.2067871094, -1145.84509277341029.4918212891000);
    
CreateObject(15502199.4033203125, -1145.11840820311029.1901855469000);
    
CreateObject(15502198.7543945313, -1145.17199707031029.1901855469000);
    
CreateObject(15502198.5354003906, -1145.65319824221029.7587890625000);
    
CreateObject(15752201.2526855469, -1145.78430175781029.3492431641000);
    
CreateObject(15752199.7893066406, -1144.73486328131028.9992675781000);
    
CreateObject(15752199.51171875, -1144.66003417971029.3046875000);
    
CreateObject(15752198.8190917969, -1144.47143554691028.9992675781000);
    
CreateObject(17122193.1145019531, -1188.54040527341028.79687500270)
}
public 
OnPlayerRequestClass(playeridclassid)
{
    
SetPlayerPos(playerid, -1889.18,18.0183,38.2361);
    
SetPlayerInterior(playerid0);
    
SetPlayerFacingAngle(playerid180);
    
SetPlayerCameraPos(playerid, -1889.2936,13.7995,38.2361);
    
SetPlayerCameraLookAt(playerid, -1889.1069,18.1730,39.0669);
     
SetPlayerSpecialAction(playeridSPECIAL_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(playeridreason)
{
    new
    
string[64],
    
name[MAX_PLAYER_NAME];
    
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
    switch(
reason)
{
    case 
0format(string,sizeof string,"%s left the server. (Timed out)",name);
    case 
1format(string,sizeof string,"%s left the server. (Leaving)",name);
    case 
2format(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.000000);
    
PlayerPlaySound(playerid,1186,162.9307,-25.8189,1.5781);
    
PlayerPlaySound(playerid,1186,-107.5323,-219.7684,2.0466);
    
SetPlayerCheckpoint(playerid244.6853,-54.9326,1.5776,1.0);
    
SetPlayerWeather(playerid1);
    new 
PlayerName[MAX_PLAYER_NAME],
    
string[128];
    
GetPlayerName(playeridPlayerNamesizeof(PlayerName));
    
format(stringsizeof(string), "%s has spawned."PlayerName);
    
SendClientMessageToAll(0xFFFFFFFFstring);
    return 
1;
}
public 
OnPlayerDeath(playeridkilleridreason)
{
    
SendDeathMessage(killeridplayeridreason);
    return 
1;
}
public 
OnVehicleSpawn(vehicleid)
{
    return 
1;
}
public 
OnVehicleDeath(vehicleidkillerid)
{
    return 
1;
}
public 
OnPlayerText(playeridtext[])
{
    return 
1;
}
public 
OnPlayerCommandText(playeridcmdtext[])
{
    if (
strcmp("/mycommand"cmdtexttrue10) == 0)
    {
        
// Do something here
        
return 1;
    }
    return 
0;
}
public 
OnPlayerEnterVehicle(playeridvehicleidispassenger)
{
    return 
1;
}
public 
OnPlayerExitVehicle(playeridvehicleid)
{
    return 
1;
}
public 
OnPlayerStateChange(playeridnewstateoldstate)
{
    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(playeridobjectid)
{
    return 
1;
}
public 
OnPlayerPickUpPickup(playeridpickupid)
{
    return 
1;
}
public 
OnVehicleMod(playeridvehicleidcomponentid)
{
    return 
1;
}
public 
OnVehiclePaintjob(playeridvehicleidpaintjobid)
{
    return 
1;
}
public 
OnVehicleRespray(playeridvehicleidcolor1color2)
{
    return 
1;
}
public 
OnPlayerSelectedMenuRow(playeridrow)
{
    return 
1;
}
public 
OnPlayerExitedMenu(playerid)
{
    return 
1;
}
public 
OnPlayerInteriorChange(playeridnewinterioridoldinteriorid)
{
    return 
1;
}
public 
OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
    return 
1;
}
public 
OnRconLoginAttempt(ip[], password[], success)
{
    return 
1;
}
public 
OnPlayerUpdate(playerid)
{
    return 
1;
}
public 
OnPlayerStreamIn(playeridforplayerid)
{
    return 
1;
}
public 
OnPlayerStreamOut(playeridforplayerid)
{
    return 
1;
}
public 
OnVehicleStreamIn(vehicleidforplayerid)
{
    return 
1;
}
public 
OnVehicleStreamOut(vehicleidforplayerid)
{
    return 
1;
}
public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    return 
1;
}
public 
OnPlayerClickPlayer(playeridclickedplayeridsource)
{
    return 
1;

PHP код:
D:\Documents and Settings\Marcos Lima\Desktop\123.pwn(48) : warning 217loose indentation
D
:\Documents and Settings\Marcos Lima\Desktop\123.pwn(50) : warning 215expression has no effect
D
:\Documents and Settings\Marcos Lima\Desktop\123.pwn(90) : error 001expected token";"but found "}"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
1 Error

Reply
#2

pawn Код:
public OnGameModeInit()
{
    UsePlayerPedAnims();
    SetGameModeText("Motel Room Service 2");
    SetTimer("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);
    return 1;
}
Reply
#3

pawn Код:
// 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");

    SetTimer("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!",pName);
    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;
}
Reply
#4

Mas Pharel,voce percebeu que o OnGameModInit dele nao esta retornando nada?
Reply
#5

Use assim, (:
pawn Код:
// 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

public OnGameModeInit()
{
    UsePlayerPedAnims();

    // Don't use these lines if it's a filterscript
    SetGameModeText("Motel Room Service 2");

    SetTimer("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);
    return 1;
}

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!",pName);
    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;
}
Reply
#6

Ninguйm explica ao rapaz ?
O problema foi causado porque vocк nгo usou " ponto e virgula " no final do code, ou seja " ; "
CreateObject(1712, 2193.1145019531, -1188.5404052734, 1028.796875, 0, 0, 270)" ; " <- Aqui deveria ter o ponto "

Seu code: CreateObject(1712, 2193.1145019531, -1188.5404052734, 1028.796875, 0, 0, 270) ? <- Sem ponto erro!

No OnGameModeInit, vocк nгo usou o return, causara problemas. Entгo coloque o return , ou copie o code do
willian.
Reply
#7

Quote:
Originally Posted by StrondA_
Посмотреть сообщение
Ninguйm explica ao rapaz ?
O problema foi causado porque vocк nгo usou " ponto e virgula " no final do code, ou seja " ; "
CreateObject(1712, 2193.1145019531, -1188.5404052734, 1028.796875, 0, 0, 270)" ; " <- Aqui deveria ter o ponto "

Seu code: CreateObject(1712, 2193.1145019531, -1188.5404052734, 1028.796875, 0, 0, 270) ? <- Sem ponto erro!

No OnGameModeInit, vocк nгo usou o return, causara problemas. Entгo coloque o return , ou copie o code do
willian.
vixe que vergonha tava igual cego em tiroteio nisso valeu
to analizando

Pelo ao menso copilo tem alguns erros ainda como spawun no ares kkkkkkk
mais ta indo, vo quebrando a cabeзa por aqui
Reply
#8

e tambem,no SetTimer voce uso apenas isso:
pawn Код:
("NextMission",6000000,false); // 10 minutes
e o certo seria:
pawn Код:
SetTimer("NextMission",6000000,false); // 10 minutes
Reply
#9

Quote:
Originally Posted by kairos
Посмотреть сообщение
vixe que vergonha tava igual cego em tiroteio nisso valeu
to analizando
Que nada man, acontece
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)