SA-MP Forums Archive
strcmp - 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: strcmp (/showthread.php?tid=349795)



strcmp - Stereotype - 10.06.2012

pawn Code:
if(strcmp("/stopcar", cmdtext, true, 10) == 0)
    {
        if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
        {
            new string[256];
            new sendername[MAX_PLAYER_NAME];
            GetPlayerName(playerid, sendername, sizeof(sendername));
            format(string, sizeof(string), "*Federal Member %s is ordering you to stop you'r car.", sendername);
            ProxDetector(45.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
        }
        else
        {
            SendClientMessage(playerid, WHITE, "("COL_RED"Greska{FFFFFF}!) You are not federal member!");
        }
        return 1;
    }





I got 7 errors


Re: strcmp - JaKe Elite - 10.06.2012

Show the errors


Re: strcmp - Stereotype - 10.06.2012

I can't .. my compiler wont start :@ is there any web compiler?


Re: strcmp - MP2 - 10.06.2012

What do you mean 'won't start'? The compile crashes/freezes?

If so you'll need to do a process of elimination - comment out lots of code at a time then compile, when it compiles okay you know where the problem is - you just commented it out. It's likely an array problem.


Re: strcmp - Stereotype - 10.06.2012

When i run , it show the error " Unable to execute compiler"


Re: strcmp - MP2 - 10.06.2012

Run pawno.exe and/or pawncc.exe as admininstrator and/or in compatibility mode.


Re: strcmp - Stereotype - 10.06.2012

Again .. error




Re: strcmp - Faisal_khan - 10.06.2012

It clearly mentions to re-install it.


Re: strcmp - Stereotype - 10.06.2012

Reinstalled 1000 times :@


AW: Re: strcmp - Extremo - 10.06.2012

Quote:
Originally Posted by Stereotype
View Post
Reinstalled 1000 times :@
Do you have multiple Pawno IDE's installed? If so, do you double click the pawno.exe to open your IDE or do you double click scripts? Windows will internally save the path to one of the pawno.exe's and keep opening scripts with that particular one, resulting in you attempting to open the same one over and over again even if you installed a new pawno IDE.

Just an idea ofc =)


Re: strcmp - Faisal_khan - 10.06.2012

Don't re-install SAMP Client. Re-install the server package.


Re: strcmp - Stereotype - 10.06.2012

I know , LIBMYSQL.dll is missing , may that is problem i dunno :/