Help /tie and /mpv
#1

Hi,

I need help for this (/tie in english) ^^

Quote:

if(strcmp(cmd, "/ligoter", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(Rope[playerid] != 0)
{
if(PlayerInfo[playerid][pLevel] < 3) // si le joueur est lvl3
{
if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15 || PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16) // si le joueur est dans les factions 5,6,14,15
{
if(PlayerInfo[playerid][pRank] < 3) //s'il est rang 3
{
SendClientMessage(playerid, COLOR_GREY, " Vous devez faire partie d'une mafia/gang et кtre niveau 3 pour ligoter ! "); // si quelque chose ne correspond pas
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "AIDE: /ligoter [idjoueur]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if(PlayerTied[giveplayerid] > 0)
{
SendClientMessage(playerid, COLOR_GREY, " Ce joueur est dйjа attachй !");
return 1;
}
if (ProxDetectorS(8.0, playerid, giveplayerid))
{
new car = GetPlayerVehicleID(playerid);
if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You cannot Tie up yourself!"); return 1; }
if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == 2 && IsPlayerInVehicle(giveplayerid, car))
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s vous a attachй, vous ne pouvez plus bougй.", sendername);
SendClientMessage(giveplayerid, COLOR_WHITE, string);
format(string, sizeof(string), "* Vous кtes attachй %s vous ne pouvez plus bougй.", giveplayer);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "* %s attache %s, il ne peut allez nullepart.", sendername ,giveplayer);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
GameTextForPlayer(giveplayerid, "~r~Ligoter", 2500, 3);
TogglePlayerControllable(giveplayerid, 0);
PlayerTied[giveplayerid] = 1;
Rope[playerid]--;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Player not in your Car, or your not the Driver !");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Ce joueur n'est pas а cotй de vous !");
return 1;
}
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Ce joueur est hors ligne !");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You don't have a Rope !");
}
}
return 1;

I need to delete the function "if the player is in the vehicle" (in red i know).
If i delete, i have some errors, just see.

Quote:

C:\DOCUME~1\DRAWKK~1.DRA\Bureau\LOSANG~1\Maj\larp. pwn(2220) : error 004: function "SafeGivePlayerMoney" is not implemented
C:\DOCUME~1\DRAWKK~1.DRA\Bureau\LOSANG~1\Maj\larp. pwn(2249) : error 004: function "SafeGivePlayerMoney" is not implemented
C:\DOCUME~1\DRAWKK~1.DRA\Bureau\LOSANG~1\Maj\larp. pwn(2285) : error 004: function "SafeResetPlayerWeapons" is not implemented
C:\DOCUME~1\DRAWKK~1.DRA\Bureau\LOSANG~1\Maj\larp. pwn(2286) : error 004: function "SafeGivePlayerWeapon" is not implemented
C:\DOCUME~1\DRAWKK~1.DRA\Bureau\LOSANG~1\Maj\larp. pwn(2313) : error 004: function "SafeResetPlayerWeapons" is not implemented
C:\DOCUME~1\DRAWKK~1.DRA\Bureau\LOSANG~1\Maj\larp. pwn(2801) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\DRAWKK~1.DRA\Bureau\LOSANG~1\Maj\larp. pwn(2812) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\DRAWKK~1.DRA\Bureau\LOSANG~1\Maj\larp. pwn(2824) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\DRAWKK~1.DRA\Bureau\LOSANG~1\Maj\larp. pwn(282 : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\DRAWKK~1.DRA\Bureau\LOSANG~1\Maj\larp. pwn(2840) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\DRAWKK~1.DRA\Bureau\LOSANG~1\Maj\larp. pwn(2844) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\DRAWKK~1.DRA\Bureau\LOSANG~1\Maj\larp. pwn(284 : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\DRAWKK~1.DRA\Bureau\LOSANG~1\Maj\larp. pwn(2852) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\DRAWKK~1.DRA\Bureau\LOSANG~1\Maj\larp. pwn(2856) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\DRAWKK~1.DRA\Bureau\LOSANG~1\Maj\larp. pwn(2860) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\DRAWKK~1.DRA\Bureau\LOSANG~1\Maj\larp. pwn(2864) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\DRAWKK~1.DRA\Bureau\LOSANG~1\Maj\larp. pwn(286 : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\DRAWKK~1.DRA\Bureau\LOSANG~1\Maj\larp. pwn(2880) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\DRAWKK~1.DRA\Bureau\LOSANG~1\Maj\larp. pwn(2884) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\DRAWKK~1.DRA\Bureau\LOSANG~1\Maj\larp. pwn(288 : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\DRAWKK~1.DRA\Bureau\LOSANG~1\Maj\larp. pwn(2892) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\DRAWKK~1.DRA\Bureau\LOSANG~1\Maj\larp. pwn(2896) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\DRAWKK~1.DRA\Bureau\LOSANG~1\Maj\larp. pwn(290 : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\DRAWKK~1.DRA\Bureau\LOSANG~1\Maj\larp. pwn(2912) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\DRAWKK~1.DRA\Bureau\LOSANG~1\Maj\larp. pwn(2916) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\DRAWKK~1.DRA\Bureau\LOSANG~1\Maj\larp. pwn(292 : error 004: function "PlayerToPoint" is not implemented

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


26 Errors.

So, thanks for your help.

And, i need help for make a command like "/moveplayertovehicle [idplayer] [seat 1,2,3]"
I don't know how i can do that :/

Thanks to you
Reply
#2

Just a word of advice you can heed.Use "code /code"(in sqaure brackets)
And yeah what if you don't delete the is player in vehicle?Do you still get errors?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)