Jump to content

Question

Posted

sall

am pus si eu aceasta casa pt admini

http://www.sa-mp.ro/forum/index.php/topic,12468.0.html

Cand deschid server

imi apare asa

[pawn][18:47:15] Script[gamemodes/RBS.amx]: Run time error 17: "Invalid/unsupported P-code file format"

[18:47:15] Failed to load 'gamemodes/RBS.amx' script.

[18:47:15] Number of vehicle models: 5

[18:49:07] --- Server Shutting Down.[/pawn]

DC?


eu am sters asta de la cmd : [pawn]      if(IsPlayerConnected(playerid)) 

{[/pawn]

Pt ca imi dadeo eror!:D


Acesta este al 100-lea post pe acest forum !!!!!!

468833_437698_362328_hiphop.jpg

6 answers to this question

Recommended Posts

Posted

[pawn]if(strcmp(cmd, "/casaadmin", true) == 0)

{

    if(IsPlayerConnected(playerid))

    {

if (PlayerInfo[playerid][pAdmin] >= 1)

{

if (GetPlayerState(playerid) == 2)

{

new tmpcar = GetPlayerVehicleID(playerid);

SetVehiclePos(tmpcar, ,-721.76696777344,949.92596435547,11.4181432724);

TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;

}

else

{

SetPlayerPos(playerid, ,-721.76696777344,949.92596435547,11.4181432724);

}

SendClientMessage(playerid, COLOR_GRAD1, "  Ai fost teleportat!");

        GetPlayerName(playerid, sendername, sizeof(sendername));

                                format(string, 256, "%s s-a teleportat la Casa Adminilor", sendername);

        ABroadCast(COLOR_YELLOW,string,1);

SetPlayerInterior(playerid,0);

PlayerInfo[playerid][pInt] = 0;

}

else

{

SendClientMessage(playerid, COLOR_GRAD1, "  Nu esti autorizat !");

}

}

return 1;

}[/pawn]

Pune asa in GM, recompileaza, si vezi sa ai in server.cfg :

gamemode0 RBS

Lil_Shean

Posted

[pawn]if(strcmp(cmd, "/casaadmin", true) == 0)

{

    if(IsPlayerConnected(playerid))

    {

if (PlayerInfo[playerid][pAdmin] >= 1)

{

if (GetPlayerState(playerid) == 2)

{

new tmpcar = GetPlayerVehicleID(playerid);

SetVehiclePos(tmpcar, ,-721.7669,949.9259,11.4181);

TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;

}

else

{

SetPlayerPos(playerid, ,-721.7669,949.9259,11.4181);

}

SendClientMessage(playerid, COLOR_GRAD1, "  Ai fost teleportat!");

        GetPlayerName(playerid, sendername, sizeof(sendername));

                                format(string, 256, "%s s-a teleportat la Casa Adminilor", sendername);

        ABroadCast(COLOR_YELLOW,string,1);

SetPlayerInterior(playerid,0);

PlayerInfo[playerid][pInt] = 0;

}

else

{

SendClientMessage(playerid, COLOR_GRAD1, "  Nu esti autorizat !");

}

}

return 1;

}[/pawn]

Incearca asta. zimi daca merge.

Lil_Shean

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.