if(strcmp(cmd, "/joingroove", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(AccountInfo[playerid][pFaction] != TEAM_NOTHING) return SendClientMessage(playerid, COLOR_ORANGE, "You are in another faction, exit it to join groove !");
{
if (PlayerToPoint(8.0, playerid, 1542.9487,-1682.6167,13.5555))
{
AccountInfo[playerid][pFaction] = TEAM_GROOVE;
SendClientMessage(playerid, COLOR_ORANGE, "congrats ! you're now in Groove family !!!");
return 1;
}
please...
if(strcmp(cmd, "/joingroove", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(AccountInfo[playerid][pFaction] != TEAM_NOTHING) return SendClientMessage(playerid, COLOR_ORANGE, "You are in another faction, exit it to join groove !");
{
if (PlayerToPoint(8.0, playerid, 1542.9487,-1682.6167,13.5555))
{
AccountInfo[playerid][pFaction] = TEAM_GROOVE;
SendClientMessage(playerid, COLOR_ORANGE, "congrats ! you're now in Groove family !!!");
//Put the Team saving Line Here
}
}
}
return 1;
}
if(strcmp(cmd, "/joingroove", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(AccountInfo[playerid][pFaction] != TEAM_NOTHING) return SendClientMessage(playerid, COLOR_ORANGE, "You are in another faction, exit it to join groove !");
{
if (PlayerToPoint(8.0, playerid, 1542.9487,-1682.6167,13.5555))
{
AccountInfo[playerid][pFaction] = TEAM_GROOVE;
SendClientMessage(playerid, COLOR_ORANGE, "congrats ! you're now in Groove family !!!");
format(var, 32, "Faction=TEAM_GROOVE\n",AccountInfo[playerid][pFaction]);fwrite(hFile, var);
}
}
}
return 1;
}
|
Originally Posted by DJDhan
Are you having the file you are writing the data to in the correct folder?
![]() |
|
Originally Posted by DJDhan
Any warnings while compiling your script?
Do you have other gangs aswell?And can you join them without problems? ![]() |
I can't work on it, i'm trying to fix it by myself but I fail and im getting fuckin angry right now...FUCK !