Error ! At Compiling !
#1

hey guys , ijust wanted to tell you i have 7 error thats in line 19975 ( 1 errors) 19976 ( 2 errors ) 19977 (6 Errors )
this is the line at 19974 - 19977
Код:
CMD:rules(playerid, params[])
{
    ShowPlayerDialog(playerid, DIALOG_RULESCMD, DIALOG_STYLE_MSGBOX, "GenerationGamers Rules", "{FF0000}GenerationGamers Rules:\nYou may NOT begg for admin! doing so could result in a Ban!\nAdvertising will lead into a STRAIGHT ban!\nDo NOT ask for VIP! only way to get it is at {FF0000}www.GenerationGamersracers.tk\nSwearing/Insulting an Admin/Player will result in a ban/kick/mute!\nDont Spam the chat or you get kicked\n\nDisrespecting any of these rules will result in a ban!\n\nhave fun!",  "Accept", "Decline");
    }
	return 1;
}
Код:
C:\Users\Fachrul\Documents\High Speed Drivers\gamemodes\HighSpeedDrivers.pwn(19975) : error 075: input line too long (after substitutions)
C:\Users\Fachrul\Documents\High Speed Drivers\gamemodes\HighSpeedDrivers.pwn(19976) : error 037: invalid string (possibly non-terminated string)
C:\Users\Fachrul\Documents\High Speed Drivers\gamemodes\HighSpeedDrivers.pwn(19976) : error 017: undefined symbol "De"
C:\Users\Fachrul\Documents\High Speed Drivers\gamemodes\HighSpeedDrivers.pwn(19977) : warning 217: loose indentation
C:\Users\Fachrul\Documents\High Speed Drivers\gamemodes\HighSpeedDrivers.pwn(19977) : error 017: undefined symbol "cline"
C:\Users\Fachrul\Documents\High Speed Drivers\gamemodes\HighSpeedDrivers.pwn(19977) : warning 215: expression has no effect
C:\Users\Fachrul\Documents\High Speed Drivers\gamemodes\HighSpeedDrivers.pwn(19977) : error 001: expected token: ";", but found ")"
C:\Users\Fachrul\Documents\High Speed Drivers\gamemodes\HighSpeedDrivers.pwn(19977) : error 029: invalid expression, assumed zero
C:\Users\Fachrul\Documents\High Speed Drivers\gamemodes\HighSpeedDrivers.pwn(19977) : fatal error 107: too many error messages on one line

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


7 Errors.
how do i fix it thx
Reply
#2

The content of the dialog is too long.
You need to reduce number of \n's and number of letters/messages, keep only the needed stuff.

pawn Код:
CMD:rules(playerid, params[])
{
    ShowPlayerDialog(playerid, DIALOG_RULESCMD, DIALOG_STYLE_MSGBOX, "GenerationGamers Rules", "Do not beg to become an admin.\nDo not advertise.\nDo not ask for VIP.\nDo not insult/provoke.\nDo not spam or flood.\nBreaking these rules will result in a ban.\n\nhave fun!", "Accept", "Decline");
    return 1;
}
Reply
#3

Thx it has i error again
Код:
C:\Users\Fachrul\Documents\High Speed Drivers\gamemodes\HighSpeedDrivers.pwn(19978) : error 010: invalid function or declaration
Код:
CMD:rules(playerid, params[])
{
        ShowPlayerDialog(playerid, DIALOG_RULESCMD, DIALOG_STYLE_MSGBOX, "GenerationGamers Rules", "{FF0000}GenerationGamers Rules:\nYou may NOT begg for admin! doing so could result in a Ban!\nAdvertising will lead into a STRAIGHT ban!\nhave fun!",  "Accept", "Decline");
    }
	return 1;
}
Reply
#4

Quote:
Originally Posted by Fachrul48
Посмотреть сообщение
-
This should do:

pawn Код:
CMD:rules(playerid, params[])
{
        ShowPlayerDialog(playerid, DIALOG_RULESCMD, DIALOG_STYLE_MSGBOX, "GenerationGamers Rules", "{FF0000}GenerationGamers Rules:\nYou may NOT begg for admin! doing so could result in a Ban!\nAdvertising will lead into a STRAIGHT ban!\nhave fun!",  "Accept", "Decline");
        return 1;
}
I'm giving you the same as what Loco gave you, use it.
Reply
#5

^ thx it works , case closed
Reply
#6

You can always use strcat! You don't really need to short your messages.

https://sampwiki.blast.hk/wiki/Strcat
Reply


Forum Jump:


Users browsing this thread: 6 Guest(s)