[help] error 033 - I haven't found by searching - 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: [help] error 033 - I haven't found by searching (
/showthread.php?tid=251974)
[help] error 033 - I haven't found by searching -
Seven_of_Nine - 29.04.2011
pawn Код:
if(Tags[playerid] != "<none>") { // error line :o
new tagname[30], nameold[30];
GetPlayerName(playerid,nameold,sizeof(nameold));
format(tagname,sizeof(tagname),"%s%s",Tags[playerid],nameold);
}
Umm error line is commented.
Creating of Tags:
pawn Код:
new Tags[MAX_PLAYERS][10];
Any ideas?
edit: before you rewrite my code, I need only 2 lines. the statement in if() or the creation
Re: [help] error 033 - I haven't found by searching -
Seven_of_Nine - 29.04.2011
oh my god,
nobody can solve this?
Re: [help] error 033 - I haven't found by searching -
Sinner - 29.04.2011
You can't compare strings like that.
pawn Код:
if(strcmp(Tags[playerid], "<none>") != 0)
{
new tagname[30], nameold[30];
GetPlayerName(playerid,nameold,sizeof(nameold));
format(tagname,sizeof(tagname),"%s%s",Tags[playerid],nameold);
}