Help - How Would I Do This?
#4

Quote:
Originally Posted by Tim_Ethen
Посмотреть сообщение
So I am creating a house system, I need to see if the player's name equals the owner of
pawn Код:
if(strcmp(hOwner[hid], pName[playerid], true)) {
I get no error but it doesn't work in-game. Because the person who owns the house can't do it.

What is the proper way to do this?
strcmp returns 0 if the Strings are Equal, so you must do

pawn Код:
if(!strcmp(hOwner[hid], pName[playerid], true)) {
Reply


Messages In This Thread
Help - How Would I Do This? - by Tim_Ethen - 06.11.2010, 05:03
Re: Help - How Would I Do This? - by -Rebel Son- - 06.11.2010, 05:08
Re: Help - How Would I Do This? - by Tim_Ethen - 06.11.2010, 05:17
Respuesta: Help - How Would I Do This? - by CuervO - 06.11.2010, 05:27
Re: Help - How Would I Do This? - by Tim_Ethen - 06.11.2010, 05:32

Forum Jump:


Users browsing this thread: 1 Guest(s)