SA-MP Forums

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

 
 
Thread Tools Display Modes
Old 25/12/2010, 10:02 AM   #1
Pooh7
Huge Clucker
 
Pooh7's Avatar
 
Join Date: Aug 2010
Location: Serbia
Posts: 367
Reputation: 23
Default [HELP] Random spawn

Code:
E:\DOCUME~1\***(2802) : error 029: invalid expression, assumed zero
E:\DOCUME~1\***(2810) : error 010: invalid function or declaration
E:\DOCUME~1\***(4881) : error 029: invalid expression, assumed zero
E:\DOCUME~1\***(4881) : error 029: invalid expression, assumed zero
E:\DOCUME~1\***(4881) : warning 215: expression has no effect
E:\DOCUME~1\***(4881) : error 001: expected token: ";", but found "new"
E:\DOCUME~1\***(4881) : fatal error 107: too many error messages on one line
pawn Code:
new Float:NasumicniSpawnovi[][] =
{
 {1084.9664, -2518.1167, 1.1016, 88.0068}, // Line 2802
 {1087.1836, -2536.8586, 1.1016, 31.4614},
 {1061.6191, -2537.8057, 1.1016, 347.7392},
 {1046.4530, -2538.0969, 1.1016, 303.4138},
 {1049.8467, -2523.8333, 1.1016, 265.3318},
 {1043.8545, -2498.7151, 1.1016, 229.6114},
 {1056.5961, -2498.0090, 1.1016, 178.2243},
 {1067.9542, -2498.2959, 1.1016, 179.4776}
};// Line 2810


SetPlayerSpawn:
pawn Code:
if(IgraCS[playerid] == true)
        {
            new spawn = random(sizeof(NasumicniSpawnovi)); // Line 4881
        SetPlayerPos(playerid, NasumicniSpawnovi[spawn][0], NasumicniSpawnovi[spawn][1], NasumicniSpawnovi[spawn][2]);
            SetPlayerFacingAngle(playerid, NasumicniSpawnovi[spawn][3]);
            return 1;
        }

How to fix that errors?
Pooh7 is offline  
Old 25/12/2010, 10:05 AM   #2
akis_tze
Huge Clucker
 
Join Date: Oct 2009
Location: Greece, Edessa
Posts: 223
Reputation: 3
Default Re: [HELP] Random spawn

pawn Code:
new Float:NasumicniSpawnovi[8][4] =
{
 {1084.9664, -2518.1167, 1.1016, 88.0068}, // Line 2802
 {1087.1836, -2536.8586, 1.1016, 31.4614},
 {1061.6191, -2537.8057, 1.1016, 347.7392},
 {1046.4530, -2538.0969, 1.1016, 303.4138},
 {1049.8467, -2523.8333, 1.1016, 265.3318},
 {1043.8545, -2498.7151, 1.1016, 229.6114},
 {1056.5961, -2498.0090, 1.1016, 178.2243},
 {1067.9542, -2498.2959, 1.1016, 179.4776}
};// Li
Try this
akis_tze is offline  
 

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
Random Spawn? Christopher. Help Archive 12 07/08/2011 03:43 AM
Random Spawn Rokzlive Help Archive 3 23/11/2010 04:38 AM
random spawn OmarEco Help Archive 19 20/07/2010 01:32 AM
Random Spawn? aussie_winter Help Archive 3 04/12/2009 11:34 PM
Random Spawn allarw Help Archive 4 24/04/2009 11:45 AM


All times are GMT. The time now is 03:40 AM.


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