SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 27/03/2014, 12:59 PM   #1
printer
Big Clucker
 
Join Date: Feb 2010
Posts: 88
Reputation: 0
Default Expected token thingy, once again, in another system.

pawn Code:
new parkrand = random(sizeof(parks));
        VehicleInfo[vehid][vSpawn][0] = parks[parkrand][0]);
        VehicleInfo[vehid][vSpawn][1] = parks[parkrand][1]);
        VehicleInfo[vehid][vSpawn][2] = parks[parkrand][2]);

pawn Code:
new Float:parks[][4] = {
    {338.9061,-1340.0706,14.0902,119.0663},
    {339.8891,-1342.5922,14.0890,119.2102},
    {341.7907,-1344.6169,14.0896,119.5418},
    {342.8988,-1347.3755,14.0906,118.9795},
    {343.9684,-1349.7366,14.0906,117.9894},
    {345.7192,-1351.8840,14.0896,120.3429},
    {346.9753,-1354.3647,14.0907,118.6756},
    {348.0715,-1356.9949,14.0903,117.5249}
};

Errors are:
pawn Code:
rp.pwn(923) : error 001: expected token: ";", but found ")"
rp.pwn(923) : error 029: invalid expression, assumed zero
rp.pwn(923) : warning 215: expression has no effect
rp.pwn(924) : error 001: expected token: ";", but found ")"
rp.pwn(924) : error 029: invalid expression, assumed zero
rp.pwn(924) : warning 215: expression has no effect
rp.pwn(925) : error 001: expected token: ";", but found ")"
rp.pwn(925) : error 029: invalid expression, assumed zero
rp.pwn(925) : warning 215: expression has no effect
printer is offline   Reply With Quote
Old 27/03/2014, 01:06 PM   #2
FireCat
High-roller
 
FireCat's Avatar
 
Join Date: Jul 2010
Posts: 2,322
Reputation: 609
Default Re: Expected token thingy, once again, in another system.

pawn Code:
new parkrand = random(sizeof(parks));
        VehicleInfo[vehid][vSpawn][0] = parks[parkrand][0];
        VehicleInfo[vehid][vSpawn][1] = parks[parkrand][1];
        VehicleInfo[vehid][vSpawn][2] = parks[parkrand][2];
FireCat 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
expected token ; but found if Blackazur Scripting Help 2 21/11/2013 03:42 PM
Expected token. Hand-Scripter Scripting Help 10 31/05/2013 07:47 AM
Help, expected token PaulDinam Scripting Help 2 28/10/2012 08:46 PM
[HELP] Error (Expected Token) MahmutBey Help Archive 3 26/03/2010 08:11 AM


All times are GMT. The time now is 06:58 AM.


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