SA-MP Forums Archive
what's wrong? - 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: what's wrong? (/showthread.php?tid=325445)



what's wrong? - mineralo - 13.03.2012

pawn Код:
new old[256],yes[MAX_PLAYERS][256];
            GetPlayer2DZone(playerid,old,sizeof(old));
            if(strcmp(old, yes[playerid], true) != 0)
            {
                yes[playerid] = old;
                GameTextForPlayer(playerid,yes[playerid],2000,1);
            }
what's wrong? plz help me


Re: what's wrong? - mineralo - 13.03.2012

any idea? I though about replace the "true" with "false" but same, its not works, help me plz


Re: what's wrong? - Bogdan1992 - 13.03.2012

But where is the problem?


Re: what's wrong? - mineralo - 13.03.2012

salut, pe scurt functzia asta trebuie sa arate jucatorul unde se afla, dar ea nu functioneaza, ce sa fac?
its should show to player where is he, in that function I added if player change position ( location ) then the string its change to new string and then show player where is he with gametext


Re: what's wrong? - mineralo - 13.03.2012

dumb


Re: what's wrong? - eesh - 13.03.2012

pawn Код:
new old[256],yes[MAX_PLAYERS][256];
GetPlayer2DZone(playerid,old,sizeof(old));
if(!strcmp(old, yes[playerid], true)) return 1;
format(yes[playerid],sizeof(yes[playerid]),"%s",old);
GameTextForPlayer(playerid,yes[playerid],2000,1);
the way you did yes = old might be the culprit.