16.07.2012, 04:13
Im trying to create a message box so players can see all the commands instead of putting them in /help. Im using a test script. Here is my code.
and here is my errors:
Im thinking I have too many commands in one line or I just plain did it wrong lol. I copied the code from the command /veh. Im thinking that is wrong haha. Someone help?
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext,"/veh",true) == 0) { ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Vehicles","1.Rhino\n2.Firetrunk","Spawn","Exit"); return 1; } if(strcmp(cmdtext,"/cmds",true) == 0) { ShowPlayerDialog(playerid,2,DIALOG_STYLE_MSGBOX,"Player Commands","/Levelup--/robcityhall--/robbank--/robgym--/robdonut--/robalhambra--/robbar--/robpizza--/robburger--/robcluckin--/report(/re)--\n/atalk--/wank--/offerblowjob--/acceptblowjob(/abk)--/declineblowjob(/dbj)--/blowjob(/bj)--/animlist--/engine--/newspaper--\n/maskon--/maskoff--/hidenumber--/speaker--/doorshout(/ds)--/knock--/knockout--/colorcar--/use--/atc--/give---/load--/store--\n/italian(/ita)--/spanish(/spa)--/japaneese(/jap)--/russian(/rus)--/blind--/blindfold--/shownotes--/deletenote--/createnote--\n/givenote--/inventory(/inv)--/takegun--/putgun--/vehicle(/v)--/trunk--/windows(/win)--/searchwallet--/showid--/smoke--/ooc(/o)--\n/dropcigarette--/pay--/charity--/afk--/stats--/decode--/getdecoder--/security--/calendar--/checksafe--/changename--/votekick--\n/voteban--/number--/levelup--/upgrade--/buyarmour--/buyspray--/buygun--/speedo--/fuel--/advertise(/ad)--/togooc--/tognews--/togfam--\n/togpm--/togphone--/me--/try--/do--/b--/whisper(/w)--/bug--/shout(/s)--/newbie(/n)--/pm--/talk(/t)--/atmwithdraw--/dice--/coin--\n(/cw)/carwhisper(/cwhisper)--/drinks--/buybeer--/buywine--/buysprunk--/buymart--/buyvodka--/buywater--/train--/selectspawn--/call--\n/sms--/housevw--/pickup--/hangup(/h)--/time--/buybiz--/sellbiz--/heal--/id--/usedildo--/belt--/helmet--/clearcp--/admins--/licensers--\n/account--/fightstyle--/gps--/pilot(/p)--/surrender(/sur)--/chatmode--/stuck--/factions--/achievements--/rules--/information--/crime--\n/kill--/stopani--/skill--/families--/divorce--/propose--/witness--/irc--/read--/buyclothes--/drink--/tie--/untie--/sell--/cook--/fish--\n/fishes--/cooked--/releasefish--/throwback--/throwbackall--/licenses--/members--/Showlicenses(/sl)--/dumpdrugs(/dropdrugs)--/steal--\n/join--/fill--/fillcar--/bandana--/bandanaoff--/cancel--/accept--/faction(/family)(/f)--/healme--/eject--/bail--/contract.","Ok","Back"); return 1); } return 0; }
and here is my errors:
Код:
C:\Users\Owner\Desktop\Test\gamemodes\test.pwn(216) : error 075: input line too long (after substitutions) C:\Users\Owner\Desktop\Test\gamemodes\test.pwn(217) : error 037: invalid string (possibly non-terminated string) C:\Users\Owner\Desktop\Test\gamemodes\test.pwn(217) : error 017: undefined symbol "re" C:\Users\Owner\Desktop\Test\gamemodes\test.pwn(217) : error 029: invalid expression, assumed zero C:\Users\Owner\Desktop\Test\gamemodes\test.pwn(217) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.