I need some pawn help :(
#1

Код:
	  
188:  {
189:	if(!strcmp("/goto",true) || !strcmp("/gotoid",true))
190:	if(!(PlayerInfo[playerid][pAdmin] >= 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;
		}

Pawn errors:
Код:
C:\Users\user\Desktop\SAMP SERVER STUFF\MYSERVER\pawno\new.pwn(188) : warning 225: unreachable code
C:\Users\user\Desktop\SAMP SERVER STUFF\MYSERVER\pawno\new.pwn(189) : error 035: argument type mismatch (argument 2)
C:\Users\user\Desktop\SAMP SERVER STUFF\MYSERVER\pawno\new.pwn(190) : error 017: undefined symbol "PlayerInfo"
C:\Users\user\Desktop\SAMP SERVER STUFF\MYSERVER\pawno\new.pwn(190) : error 029: invalid expression, assumed zero
C:\Users\user\Desktop\SAMP SERVER STUFF\MYSERVER\pawno\new.pwn(190) : error 029: invalid expression, assumed zero
C:\Users\user\Desktop\SAMP SERVER STUFF\MYSERVER\pawno\new.pwn(190) : fatal error 107: too many error messages on one line
Reply
#2

Can you point out where the errors are? We don't have the full script.
Reply
#3

My mistake I put the line numbers in where problems are.
Reply
#4

Not Sure What Your Problem Is But I can Suggest Using Dialogs Rather Than SendClientMessage.
Its Easyer And It Looks A Little Better.
But go With What Makes You More Conferrable
Reply
#5

I'm so new to coding, I don't even know how to do that.....
Reply
#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
#7

Quote:
Originally Posted by nogh445
Посмотреть сообщение
I'm so new to coding, I don't even know how to do that.....
ok if ya like i can try help ya out message me on xfire olskoolpimp
Reply
#8

anyone here script for free?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)