PLEase HELP ME! Variables???
#2

pawn Код:
new variable;

public OnPlayerConnect(playerid)
{
     variable = 0;
     return 1;
}

public OnPlayerSpawn(playerid)
{
     if(variable == 0)
     {
          printf("variable is 0");
          variable = 1;
     }
     else
     {
          printf("variable is 1");
     }
     return 1;
}
Reply


Messages In This Thread
PLEase HELP ME! Variables??? - by Andrew97 - 14.04.2012, 23:27
Re: PLEase HELP ME! Variables??? - by Kitten - 14.04.2012, 23:29
Re: PLEase HELP ME! Variables??? - by Andrew97 - 14.04.2012, 23:32
Re: PLEase HELP ME! Variables??? - by MP2 - 14.04.2012, 23:32
Re: PLEase HELP ME! Variables??? - by Andrew97 - 14.04.2012, 23:35
Re: PLEase HELP ME! Variables??? - by MP2 - 14.04.2012, 23:36
Re: PLEase HELP ME! Variables??? - by Andrew97 - 14.04.2012, 23:38
Re: PLEase HELP ME! Variables??? - by Kitten - 14.04.2012, 23:39
Re: PLEase HELP ME! Variables??? - by MP2 - 14.04.2012, 23:40
Re: PLEase HELP ME! Variables??? - by Andrew97 - 14.04.2012, 23:41

Forum Jump:


Users browsing this thread: 1 Guest(s)