I need some pawn help :(
#6

Here, read the comments (//)after the lines
pawn Код:
188:  { //The warning on this line is because you have a 'return' line before it, so the compiler will never reach the current line
189:    if(!strcmp(cmdtext, "/goto",true) || !strcmp(cmdtext, "/gotoid",true)) //You must compare "/goto" and "/gotoid" with something, not just add in true. I added cmdtext there if you need an example but that's probably what it must be there. If it's not just change it
190:    if(PlayerInfo[playerid][pAdmin] < 1) //It says PlayerInfo doesn't actually exist, so you must create it somewhere in your script, but it looks rather better to have it as "is < 1" than "is not >= 1"
        return SendClientMessage(playerid, COLOR_WHITE, "You are not Authorized to use that.");
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
            SendClientMessage(playerid, COLOR_WHITE,"USAGE: /goto [PlayerID/PartOfName] or /goto [Place]");
            SendClientMessage(playerid, COLOR_WHITE,"Would you like to put a temporary TP for your own ? Then /mark it !");
            SendClientMessage(playerid, COLOR_LIGHTRED,"mark lsair sfair lvair lspd saints county bayside");
            SendClientMessage(playerid, COLOR_LIGHTRED,"tower chiliad airstrip bayside dam bank pier int1 bloodbowl");
            SendClientMessage(playerid, COLOR_LIGHTRED,"underwater jet battlefield 8track kickstart dirtbike gym");
            SendClientMessage(playerid, COLOR_LIGHTRED,"hitmen ss fbi sasp demorgan");
            SendClientMessage(playerid, COLOR_LIGHTRED,"paintball 24/7 vip binco elevator");
            SendClientMessage(playerid, COLOR_LIGHTRED,"vla grove glen rich");
            SendClientMessage(playerid, COLOR_LIGHTRED,"tune1 tune2 tune3");
            SendClientMessage(playerid, COLOR_LIGHTRED,"mp1 mf1 mp2 mf2 dh df cl sprunk ffc aec");
            return 1;
        }
It's 3 AM and I'm sleepy in case anything's wrong here.
Reply


Messages In This Thread
I need some pawn help :( - by nogh445 - 30.10.2011, 03:18
Re: I need some pawn help :( - by [GOD]Dragonster82 - 30.10.2011, 03:50
Re: I need some pawn help :( - by nogh445 - 30.10.2011, 04:02
Re: I need some pawn help :( - by Lookin - 30.10.2011, 04:47
Re: I need some pawn help :( - by nogh445 - 30.10.2011, 04:56
Re: I need some pawn help :( - by Gustavob - 30.10.2011, 04:57
Re: I need some pawn help :( - by Lookin - 30.10.2011, 06:01
Re: I need some pawn help :( - by Flamedramon - 30.10.2011, 07:40

Forum Jump:


Users browsing this thread: 4 Guest(s)