PDA

View Full Version : random


manchestera
24/11/2011, 09:00 PM
Anyover problem with randoms lol tring to do a random weapon but getting a couple errors


new const RandomPistol[3][2] =
{
{22, 300}, //DEagle
{23, 300}, //Shotgun
{24, 300}, //Molotov
};
C:\Users\GTA ONLY\My Samp Server\gamemodes\MySQL.pwn(179) : error 018: initialization data exceeds declared size
C:\Users\GTA ONLY\My Samp Server\gamemodes\MySQL.pwn(328) : warning 217: loose indentation
C:\Users\GTA ONLY\My Samp Server\gamemodes\MySQL.pwn(784) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Many thanks

manchestera
24/11/2011, 09:03 PM
got it did a , XD

Tanush123
25/11/2011, 01:16 AM
whats the line of 179

serman
25/11/2011, 01:18 AM
new const RandomPistol[3][2] =
{
{22, 300}, //DEagle
{23, 300}, //Shotgun
{24, 300}, //Molotov
};

Change it to

new const RandomPistol[3][2] =
{
{22, 300}, //DEagle
{23, 300}, //Shotgun
{24, 300} //Molotov
};