Having 5 error
#1

Hello, Can you help me with this command?
I'm getting errors in this command

pawn Код:
if(strcmp(cmd, "/cmds", true) == 0)
    {
    ShowPlayerDialog(playerid,28,DIALOG_STYLE_MSGBOX,"Commands","GENERAL COMMANDS: /stats /admins /serverteam /cctv /report /changepass [There is no command changepass like uG]\n ROLEPLAY COMMANDS: /me   /do /w /shouts /b /o /pm /l /s /chathelp /rpname [Will be done soon\n VEHICLE COMMANDS: /trunk /hood /lockv /objective /lights\n HOUSE COMMANDS: /buyhouse /sellhouse and Alot functions are added in /housemenu command\n BUSINESS COMMANDS: /buybus /sellbus and Alot functions are in dialog command /busmenu\n ORGS COMMANDS: /request /orglist only for players who are not in gang\n PHONE COMMANDS: /call /hangup /sms /pb /ph /mpn /sms\n ANIMLIST COMMANDS: /animlist (Alot of commands in animlist in 50-60\n RULES COMMANDS: /rules /banrules /tbrules /help","Okay","Okay");
    return 1;
     }
And the errors are in this cmd
C:\DOCUME~1\MOSTWA~1\Desktop\NoZer0.pwn(47) : warning 213: tag mismatch
C:\DOCUME~1\MOSTWA~1\Desktop\NoZer0.pwn(154) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
C:\DOCUME~1\MOSTWA~1\Desktop\NoZer0.pwn(414) : error 075: input line too long (after substitutions)
C:\DOCUME~1\MOSTWA~1\Desktop\NoZer0.pwn(415) : error 037: invalid string (possibly non-terminated string)
C:\DOCUME~1\MOSTWA~1\Desktop\NoZer0.pwn(415) : error 017: undefined symbol "GENERAL"
C:\DOCUME~1\MOSTWA~1\Desktop\NoZer0.pwn(415) : error 029: invalid expression, assumed zero
C:\DOCUME~1\MOSTWA~1\Desktop\NoZer0.pwn(415) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.

415: Line is of the dialog
and 414 Line: is the line of "{" before coming the dialog
Can you fix these errors or explain me that wat mistake i did?
Reply
#2

Make different strings like this and then use:
pawn Код:
new string[952];
strcat(string, "[Server Commands]/credits,/help,/kill,/afk,/back,/me,/v,/givecash,/fix,/flip,/tts,/ttsstop,/skin,/report,/admin,/pm,/admins,/radio\n");
strcat(string, "[Server Commands]/addboject,/objectids,/boneids\n");
strcat(string, "[Admin Commands (1)]/s,/soff,/explode,/slap,/mute,/unmute\n");
strcat(string, "[Admin Commands (2)]/duty,/dutyoff,/fr(eeze),/unfr(eeze),/cc\n");
strcat(string, "[Admin Commands (3)]/rac,/recon\n");
strcat(string, "[Admin Commands (4)]/bring,/goto,/heal,/healall,/adminradio,/radiooff\n");
strcat(string, "[Admin Commands (5)]/gmx");
ShowPlayerDialog(playerid, 44, DIALOG_STYLE_MSGBOX, "Help", string, "OK", "");
Paste line 47 & 154.

This sucks:
This forum requires that you wait 120 seconds between posts. Please try again in 46 seconds.
Reply
#3

Quote:
Originally Posted by Faisal_khan
Посмотреть сообщение
This sucks:
This forum requires that you wait 120 seconds between posts. Please try again in 46 seconds.
This sucks too:
The message you have entered is too short. Please lengthen your message to at least 4 characters.
Reply
#4

Quote:
Originally Posted by [MM]RoXoR[FS]
Посмотреть сообщение
This sucks too:
The message you have entered is too short. Please lengthen your message to at least 4 characters.
Hell yeah!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)