Add each time +1
#2

You really don't understand how INI works, do you? THIS is how your code should look like, but obviusly, you might not have the variable "MenPoint" declared.

pawn Код:
CMD:work(playerid, params[])
{
     if(IsPlayerInRangeOfPoint(playerid, 250.0, 1067.5548,2092.2280,10.8203))
     {
         SendClientMessage(playerid, COLOR_WHITE, "[>>>] You are working in this factory, you earned one menpower  point.");
         new INI:FILE=INI_Open("FileName");
         INI_SetTag(FILE,"FileTag");
         PlayerInfo[playerid][MenPoint]++;
         INI_WriteInt(FILE, "MP", PlayerInfo[playerid][MenPoint]);
         INI_Close(FILE);
     }
     else
     {
         SendClientMessage(playerid, COLOR_WHITE, "{FFAAAA}[error]{FFFFFF}You are not near any factory!");
     }
  return 1;
}
Reply


Messages In This Thread
Add each time +1 - by jordyvc - 24.06.2013, 13:53
Re: Add each time +1 - by Cjgogo - 24.06.2013, 14:04

Forum Jump:


Users browsing this thread: 1 Guest(s)