SA-MP Forums Archive
Freezing then gmx :( - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Freezing then gmx :( (/showthread.php?tid=89408)



Freezing then gmx :( - Kyle - 01.08.2009

This is bugged can you fix please?
pawn Code:
switch (classid) {

          case 0:
          {
      format(string, sizeof(string), "~y~President",playerid);
      GameTextForPlayer(playerid, string, 2000,6);
        if(TEAMPRES == 1)
            {
      format(string, sizeof(string1), "~n~ ~r~Not Avalible",playerid);
      GameTextForPlayer(playerid, string1, 2000,6);
            }
            }
This is the problem
pawn Code:
if(TEAMPRES == 1)
            {
      format(string, sizeof(string1), "~n~ ~r~Not Avalible",playerid);
      GameTextForPlayer(playerid, string1, 2000,6);
            }
when the teampres == 0 its fine but wen its 1 it freezes


Re: Freezing then gmx :( - saiberfun - 01.08.2009

pawn Code:
switch (classid) {

          case 0:
          {
      format(string, sizeof(string), "~y~President",playerid);
      GameTextForPlayer(playerid, string, 2000,6);
        if(TEAMPRES == 1)
            {
      format(string, sizeof(string1), "~n~ ~r~Not Avalible",playerid);
      GameTextForPlayer(playerid, string, 2000,6);
            }
            }
u called on the GameText the string string1 instead of string^^


Re: Freezing then gmx :( - .::: Ecko :::. - 01.08.2009

It's not needed "if(TEAMPRES == 1)" You just need to know the 'row' for witch teams are the 1st the 2rd the 3rd ..etc
Code:
switch (classid) {

	    case 0:
	    {
        format(string, sizeof(string), "~y~President",playerid);
        GameTextForPlayer(playerid, string, 2000,6);
		}
		case 1:
		{
        format(string, sizeof(string1), "~n~ ~r~Not Avalible",playerid);
        GameTextForPlayer(playerid, string, 2000,6);        
        }
     }
return 1
}
Ecko


Re: Freezing then gmx :( - saiberfun - 01.08.2009

Quote:
Originally Posted by .::: [E
Ecko :::. ]
It's not needed "if(TEAMPRES == 1)" You just need to know the 'row' for witch teams are the 1st the 2rd the 3rd ..etc
Code:
switch (classid) {

	    case 0:
	    {
        format(string, sizeof(string), "~y~President",playerid);
        GameTextForPlayer(playerid, string, 2000,6);
		}
		case 1:
		{
        format(string, sizeof(string1), "~n~ ~r~Not Avalible",playerid);
        GameTextForPlayer(playerid, string, 2000,6);        
       }
    }
return 1
}
Ecko
he want's it so if sum1 got that skin already it's not avaible anymore^^


Re: Freezing then gmx :( - .::: Ecko :::. - 01.08.2009

Quote:
Originally Posted by saiberfun
Quote:
Originally Posted by .::: [E
Ecko :::. ]
It's not needed "if(TEAMPRES == 1)" You just need to know the 'row' for witch teams are the 1st the 2rd the 3rd ..etc
Code:
switch (classid) {

	    case 0:
	    {
        format(string, sizeof(string), "~y~President",playerid);
        GameTextForPlayer(playerid, string, 2000,6);
		}
		case 1:
		{
        format(string, sizeof(string1), "~n~ ~r~Not Avalible",playerid);
        GameTextForPlayer(playerid, string, 2000,6);        
       }
    }
return 1
}
Ecko
he want's it so if sum1 got that skin already it's not avaible anymore^^
Oh,didn't think about it ><
But nvm,the problem is solved. Wink

Ecko