SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 04/03/2018, 01:58 AM   #1
UFF
Banned
 
Join Date: Feb 2018
Location: Funky World
Posts: 346
Reputation: 28
Default Please Help me

Error: Expected token: "-string end-", but found "-identifier-"

Error Line
new DB: Database;



How can I fix this?
UFF is offline   Reply With Quote
Old 04/03/2018, 03:14 AM   #2
UFF
Banned
 
Join Date: Feb 2018
Location: Funky World
Posts: 346
Reputation: 28
Default Re: Please Help me

// above
new pToys[MAX_PLAYERS][6][e_toy_data];
new toySelected[MAX_PLAYERS];

new DB: Database;

// below
new bool:BoughtVehicle[MAX_PLAYERS],
PlayerVehicle[MAX_PLAYERS],
pVehicle[MAX_PLAYERS];
UFF is offline   Reply With Quote
Old 04/03/2018, 04:42 AM   #3
KaRToNiToS
Banned
 
Join Date: Feb 2018
Posts: 12
Reputation: 2
Default Re: Please Help me

Try this


Code:
new DB[MAX_PLAYERS][Database];
KaRToNiToS is offline   Reply With Quote
Old 04/03/2018, 05:30 AM   #4
AroseKhanNiazi
High-roller
 
AroseKhanNiazi's Avatar
 
Join Date: Jan 2014
Location: Pakistan
Posts: 1,349
Reputation: 78
Default Re: Please Help me

Mind if you show the definition of DB?
AroseKhanNiazi is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 11:14 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.