20.11.2010, 14:30
Hey all, first of all i have to say that this forum REALLY needs a "View my topics" button somewhere.. because ive lost track of all my topics/threads lol, so ill make a new one..
How to fix these errors?
I got the errors when compiling after i added these /help and /rules commands >.>..
How to fix these errors?
Код:
C:\Documents and Settings\Administratцr\Skrivbord\SAMP server\gamemodes\new.pwn(95) : error 037: invalid string (possibly non-terminated string) C:\Documents and Settings\Administratцr\Skrivbord\SAMP server\gamemodes\new.pwn(95) : error 017: undefined symbol "Help" C:\Documents and Settings\Administratцr\Skrivbord\SAMP server\gamemodes\new.pwn(95 -- 96) : error 017: undefined symbol "First" C:\Documents and Settings\Administratцr\Skrivbord\SAMP server\gamemodes\new.pwn(95 -- 96) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/help", cmdtext, true, 10) == 0) { SendClientMessage(playerid, red, "~~~Help~~~ First Of All Read The Rules! Do So By Typing /Rules In The Chat Window /Teles To See All Of The Teleports. /Cars To Open The Vehicle Menu. /Anims To See More About Animations. /Cmds To See More About our Commands. /Website If You Would Like To Visit Our Forums. If You Would Like To Talk More Private You Can PM Your Friends With /PM Followed By Their ID or Nickname. "); return 1; } return 0; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/rules", cmdtext, true, 10) == 0) { SendClientMessage(playerid, red, " ~~Rules~~ Never beg to be an admin! If you would like to be an admin sign up at forums Never steal other peoples cars! (Not their wifes either hihi !) NEVER deathmatch outside of deathmatch ares, it WILL lead to an kick/bann And remember, be nice to people and they will be nice to you! "); return 1; } return 0; }