random msg problem
#1

PHP код:
new RandomMSG[][] =
{
    
"Use /kart for karting driving fun"
    "Use /drift, /drift2, /Drift3 for drifting"
    "There is alot of maps all over San Andreas"
    "Use /vr or /fix to repair your vehicle"
    "Use /heal to heal yourselfe"
    "Use /armour to set your armour to 100"
    "You can use /spawnveh to spawn yourselfe an vehicle"
    "Use /anims to get an dialog of anims you can use"
    "We hope you enjoy your time spend on Mata DM/stunt"
    "If you need to change your car color use /carcolor [Color 1] [Color 2]"
    "If you need to go afk use /afk and when you are back use /back"
}; 
Error:

PHP код:
C:\Users\Mario\Desktop\matta\Mata Server\gamemodes\stunt.pwn(420) : error 001expected token"}"but found "-string-"
C:\Users\Mario\Desktop\matta\Mata Server\gamemodes\stunt.pwn(430) : error 010invalid function or declaration
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
2 Errors

This is third help im asking for, but pls help
Reply
#2

Try:
pawn Код:
new RandomMSG[][] =
{
    "Use /kart for karting driving fun",
    "Use /drift, /drift2, /Drift3 for drifting",
    "There is alot of maps all over San Andreas",
    "Use /vr or /fix to repair your vehicle",
    "Use /heal to heal yourselfe",
    "Use /armour to set your armour to 100",
    "You can use /spawnveh to spawn yourselfe an vehicle",
    "Use /anims to get an dialog of anims you can use",
    "We hope you enjoy your time spend on Mata DM/stunt",
    "If you need to change your car color use /carcolor [Color 1] [Color 2]",
    "If you need to go afk use /afk and when you are back use /back"
};
Comma's
Reply
#3

forgetting something The Comma >> ,
Reply
#4

it works
Reply
#5

Quote:
Originally Posted by Kakioshe22
Посмотреть сообщение
it works
Glad we could help.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)