PDA

View Full Version : Little help please? [+rep]


Lunixx
31/07/2015, 01:33 PM
Error
C:\Users\Artur\Downloads\PZGRP\gamemodes\HSRP.pwn( 38) : error 029: invalid expression, assumed zero
C:\Users\Artur\Downloads\PZGRP\gamemodes\HSRP.pwn( 38 -- 586) : error 008: must be a constant expression; assumed zero
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.

Part of the script
new AutoMessages[][] = {
"Welcome to Project:Z-Gaming Roleplay",
"If there's no Admins available please make a report at Forums",
"Check out our forums at projectz-gaming.esy.es",
"Donations give great rewards. Check our forums for more info",
"If youre having account issues please make administrative request on Forum",
"This is a Medium RP Server. At all times YOU MUST roleplay",
"Use /information to view our current information about our server.",
"Type /changes to see any new changes to the script.",
"Looking for some help? Use /requesthelp or /newb.",
"The more active you are the more chance you have to be selected for Staff Team.",
}
Line 38(last line)
}

Kaliber
31/07/2015, 01:34 PM
Write it like this:

stock const AutoMessages[][] = {
{"Welcome to Project:Z-Gaming Roleplay"},
{"If there's no Admins available please make a report at Forums"},
{"Check out our forums at projectz-gaming.esy.es"},
{"Donations give great rewards. Check our forums for more info"},
{"If youre having account issues please make administrative request on Forum"},
{"This is a Medium RP Server. At all times YOU MUST roleplay"},
{"Use /information to view our current information about our server."},
{"Type /changes to see any new changes to the script."},
{"Looking for some help? Use /requesthelp or /newb."},
{"The more active you are the more chance you have to be selected for Staff Team."}
}

Lunixx
31/07/2015, 01:40 PM
EDIT: FIXED. +REP