J'apprends a scripter et je fais un serveur DM/FUN , mais j'ai un probleme avec PlayerToPoint :
J'ai fais la commande sans PlayerToPoint et sa marche mais quand je le rajoutes 1 errors .
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/aide", true) == 0)
{
SendClientMessage(playerid, COLOR_YELLOW,"|______________________ Commandes Générales ______________________|");
SendClientMessage(playerid, COLOR_GREEN,"/weaponsmenu , /gotoclub");
SendClientMessage(playerid, COLOR_GREEN,"");
TogglePlayerControllable(playerid,1);
return 1;
}
if(strcmp(cmdtext, "/gotoclub", true) == 0)
{
SendClientMessage(playerid, COLOR_BLUE,"Vous etes au casino !");
SetPlayerPos(playerid, 2002.37, 1017.71, 996.47);
SetPlayerInterior(playerid,10);
return 1;
}
if(strcmp(cmdtext, "/gotoclub2", true) == 0)
{
if(PlayerToPoint(30.0,playerid,-2192.82,964.34,81.50))
return SendClientMessage(playerid,COLOR_RED,"Erreur: Vous n'êtes pas devant la porte du casino");
SendClientMessage(playerid, COLOR_BLUE,"Vous etes au casino !");
SetPlayerPos(playerid, 2002.37, 1017.71, 996.47);
SetPlayerInterior(playerid,10);
return 1;
}
}
Merci d'avance pour votre aide