I need some pawn help :( -
nogh445 - 30.10.2011
Код:
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
Re: I need some pawn help :( -
[GOD]Dragonster82 - 30.10.2011
Can you point out where the errors are? We don't have the full script.
Re: I need some pawn help :( -
nogh445 - 30.10.2011
My mistake I put the line numbers in where problems are.
Re: I need some pawn help :( -
Lookin - 30.10.2011
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
Re: I need some pawn help :( -
nogh445 - 30.10.2011
I'm so new to coding, I don't even know how to do that.....
Re: I need some pawn help :( -
Gustavob - 30.10.2011
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.
Re: I need some pawn help :( -
Lookin - 30.10.2011
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
Re: I need some pawn help :( -
Flamedramon - 30.10.2011
anyone here script for free?