12.05.2016, 04:44
Код:
error 017: undefined symbol "tJoinRules" warning 215: expression has no effect error 001: expected token: ";", but found "]" error 029: invalid expression, assumed zero fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
but still not working.
last time i tried
PHP код:
new Text:tJoinRules;
new Text:tJoinRules[0];
new Text:tJoinRules[1];
new Text:tJoinRules[2];
new Text:tJoinRules[3];
new Text:tJoinRules[4];
Код:
stock ToggleTextDrawsForPlayer(playerid, type, bool:toggle)
{
switch(type)
{
case TEXTDRAWS_JOIN_RULES:
{
if(toggle)
{
TextDrawShowForPlayer(playerid, tJoinRules[0]); // 996,which is the current error.
TextDrawShowForPlayer(playerid, tJoinRules[1]);
TextDrawShowForPlayer(playerid, tJoinRules[2]);
TextDrawShowForPlayer(playerid, tJoinRules[3]);
TextDrawShowForPlayer(playerid, tJoinRules[4]);
}
else
{
TextDrawHideForPlayer(playerid, tJoinRules[0]);
TextDrawHideForPlayer(playerid, tJoinRules[1]);
TextDrawHideForPlayer(playerid, tJoinRules[2]);
TextDrawHideForPlayer(playerid, tJoinRules[3]);
TextDrawHideForPlayer(playerid, tJoinRules[4]);
}
}
}
return 1;
}

