tJoinRules detected as undefined - 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)
+--- Thread: tJoinRules detected as undefined (
/showthread.php?tid=606963)
tJoinRules detected as undefined -
PowerF - 12.05.2016
Код:
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.
I have tried to use "Text:tJoinRules[5];" and "Text:tJoinRules;"
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];
still,not working too.
Код:
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;
}
Re: tJoinRules detected as undefined -
PowerF - 12.05.2016
bump
Re: tJoinRules detected as undefined -
jlalt - 12.05.2016
Remove them all and write this instead of them
PHP код:
new Text:tJoinRules[5];