Ajutor!!
#8

Quote:
Originally Posted by shiftlol
Посмотреть сообщение
ma asa ceva nu exista! INI_Open"LoadUser_%s";

am facut dupa exemplu asta e codu
PHP код:
CMD:getjobc(playerid)
{
    if(
IsPlayerInRangeOfPoint(playerid,4,589.7928,870.6724,-42.4973))
    {
    new 
string[128],playerName[MAX_PLAYER_NAME+1];
    
GetPlayerName(playeridplayerNameMAX_PLAYER_NAME);
    
format(string,sizeof(string),"scriptfiles/Users/%s.ini",playerName);
    new 
INI:PlayerFile INI_Open(string);
    
INI_WriteInt(PlayerFile,"Job",PlayerInfo[playerid][pJob]);
    
INI_Close(PlayerFile);
    
PlayerInfo[playerid][pJob] = 1;
    
SendClientMessage(playerid,-1,"{FF0000}INFO:{FFFFFF}Acuma esti muncitor la cariera");
    }
    else 
SendClientMessage(playerid, -1"{FF0000}INFO:{FFFFFF}Nu esti in locul potrivit,ti-am setat un checkpoint catre job.");
    
SetPlayerCheckpoint(playerid,589.7928,870.6724,-42.4973,3.0);
    
onjobc[playerid] = true;
    return 
1;

dar nu merge
Reply


Messages In This Thread
Ajutor la comanda /getjobc - by Calinut200 - 17.06.2016, 12:31
Re: Ajutor!! - by Lumineux - 17.06.2016, 13:41
Re: Ajutor!! - by Calinut200 - 17.06.2016, 15:45
Re: Ajutor la comanda /getjobc - by shiftlol - 17.06.2016, 16:31
Re: Ajutor la comanda /getjobc - by Calinut200 - 17.06.2016, 16:37
Re: Ajutor la comanda /getjobc - by shiftlol - 17.06.2016, 16:46
Re: Ajutor la comanda /getjobc - by shiftlol - 17.06.2016, 16:48
Re: Ajutor la comanda /getjobc - by Calinut200 - 17.06.2016, 17:06
Re: Ajutor la comanda /getjobc - by shiftlol - 17.06.2016, 17:08
Re: Ajutor la comanda /getjobc - by Calinut200 - 17.06.2016, 17:18

Forum Jump:


Users browsing this thread: 1 Guest(s)