strcmp B don't count as 'b' small ? - 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 B don't count as 'b' small ? (
/showthread.php?tid=600475)
strcmp B don't count as 'b' small ? -
Metharon - 08.02.2016
for(new i = 0; i < sizeof(VehicleInfo); i++)
{
if(strcmp(GetName(playerid), VehicleInfo[i][vOwner], true) == 0)
{
Ok so a player on my server today had a problem.
When he connected with the name bobby = The server doesen't let him acces the car.
When he connected with the name Bobby (The original name he had when he registered the car) the server did.
How can i make the STRCMP to take small letters & big letters?
Re: strcmp B don't count as 'b' small ? -
amirm3hdi - 08.02.2016
You need to unset sensitive case.
EDIT:
If you compare them with case ignoring, then you might have a problem somewhere else!
BTW, I personally use unique player ids...
Re: strcmp B don't count as 'b' small ? -
Metharon - 08.02.2016
Any other ideas , please? I'm waiting!
Re: strcmp B don't count as 'b' small ? -
GangstaSunny - 08.02.2016
PHP код:
if(!strcmp(GetName(playerid), VehicleInfo[i][vOwner], true))
{
//your code here
}
//edit - Passed some infos before
Re: strcmp B don't count as 'b' small ? -
ikey07 - 08.02.2016
Try to replicate it with your own account, to see if its acually the case why it doesnt let him use them