[Tutorial] How to make a /goto and /gethere command for newbies!
#3

pawn Код:
if(!IsPlayerAdmin(playerid)) == 0)
better remove the == 0
and fail it checks if player is not logged as rcon administrator.

you could just do

pawn Код:
if(!IsPlayerAdmin(playerid))
checks if player is not admin, if player is admin this function will not called

plus bad indentation

hope you read this!
2/10

EDIT:

also this one is fail

pawn Код:
if(playerid == id)
Are you crazy? did you copy/paste this from other?

this is the correct one

pawn Код:
if(id == playerid)
checks if the selected id is playerid. really really bad tutorial plus
you could just do

pawn Код:
if(id == INVALID_PLAYER_ID)
instead of IsPlayerConnected. sscanf supports what i give above ^^^
Reply


Messages In This Thread
How to make a /goto and /gethere command for newbies! - by adampoconnor - 21.03.2012, 23:47
Re: How to make a /goto and /gethere command for newbies! - by adampoconnor - 27.03.2012, 05:32
Re: How to make a /goto and /gethere command for newbies! - by Reklez - 27.03.2012, 05:38
Re: How to make a /goto and /gethere command for newbies! - by adampoconnor - 27.03.2012, 15:18
Re: How to make a /goto and /gethere command for newbies! - by Max_Coldheart - 27.03.2012, 15:40

Forum Jump:


Users browsing this thread: 1 Guest(s)