Random Pos errors.
#1

I use it Like this:
PHP код:
new Float:SDM1[][] =
{
    {
2321.2295,1091.7527,79.5547,200.2727}, // SDM1 1st Spawn Pos
    
{2225.3442,1113.3691,64.9291,85.5682}, // SDM1 2nd Spawn Pos
    
{2279.4407,1112.3759,57.6250,105.3083}, // SDM1 3st Spawn Pos
    
{2196.1343,1004.8544,79.5547,175.1823}, //  SDM1 4th Spawn Pos
    
{2275.6519,1111.6068,71.2844,312.7136}, // SDM1 5th Spawn Pos
    
{2228.8796,1109.1208,64.8463,216.2060// SDM1 6th Spawn Pos
}; 
PHP код:
if (strcmp("/sdm"cmdtexttrue10) == 0)
    {
    new 
Random random(sizeof(SDM1));
    
SetPlayerPos(playeridSDM1[Random][0], SDM1[Random][1], SDM1[Random][2]);
        
SetPlayerFacingAngle(playeridSDM1[Random][3]);
    
SetPlayerHealth(playerid100);
    
SetPlayerArmour(playerid100);
    
SetPlayerSkin(playerid,137);
       
GivePlayerWeapon(playerid3499999);
       
GivePlayerWeapon(playerid461);
    }
        return 
1
But i show me errors
PHP код:
E:\GTA\gamemodes\mg.pwn(111) : error 017undefined symbol "SDM1"
E:\GTA\gamemodes\mg.pwn(111) : error 029invalid expressionassumed zero
E
:\GTA\gamemodes\mg.pwn(111) : warning 215expression has no effect
E
:\GTA\gamemodes\mg.pwn(112) : error 017undefined symbol "SDM1"
E:\GTA\gamemodes\mg.pwn(112) : warning 215expression has no effect
E
:\GTA\gamemodes\mg.pwn(112) : error 001expected token";"but found "]"
E:\GTA\gamemodes\mg.pwn(112) : error 029invalid expressionassumed zero
E
:\GTA\gamemodes\mg.pwn(112) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
6 Errors

Reply


Messages In This Thread
Random Pos errors. - by oktokt1 - 13.06.2016, 19:12
Re: Random Pos errors. - by F1N4L - 13.06.2016, 19:23
Re: Random Pos errors. - by oktokt1 - 13.06.2016, 19:38
Re: Random Pos errors. - by F1N4L - 13.06.2016, 19:44
Re: Random Pos errors. - by oktokt1 - 13.06.2016, 19:50
Re: Random Pos errors. - by F1N4L - 13.06.2016, 19:55
Re: Random Pos errors. - by oktokt1 - 13.06.2016, 20:07
Re: Random Pos errors. - by iKarim - 13.06.2016, 20:11
Re: Random Pos errors. - by F1N4L - 13.06.2016, 20:16
Re: Random Pos errors. - by oktokt1 - 13.06.2016, 20:20

Forum Jump:


Users browsing this thread: 1 Guest(s)