Small query not working as its supposed to
#2

You need to use a function to compare strings in PAWN.

pawn Код:
if( !strcmp( ABusinessData[BusID][Owner], APlayerData[playerid][PlayerName]) )
{
    //strings match if strcmp returns zero
}
https://sampwiki.blast.hk/wiki/Strcmp

Other useful string functions listed at bottom of that page.
Reply


Messages In This Thread
Small query not working as its supposed to - by Stevee - 12.06.2012, 18:28
Re: Small query not working as its supposed to - by iggy1 - 12.06.2012, 18:30
Re: Small query not working as its supposed to - by Stevee - 12.06.2012, 18:33
Re: Small query not working as its supposed to - by iggy1 - 12.06.2012, 18:34
Re: Small query not working as its supposed to - by Stevee - 12.06.2012, 18:37
Re: Small query not working as its supposed to - by Stevee - 12.06.2012, 19:01
Re: Small query not working as its supposed to - by iggy1 - 12.06.2012, 19:21
Re: Small query not working as its supposed to - by Stevee - 12.06.2012, 19:29

Forum Jump:


Users browsing this thread: 1 Guest(s)