Help with 5 errors!!!
#1

Hi,

I got 5 errors while compiling, and I dunno how to fix them!

Код:
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(574) : error 017: undefined symbol "x"
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(575) : warning 211: possibly unintended assignment
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(575) : error 022: must be lvalue (non-constant)
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(575) : error 022: must be lvalue (non-constant)
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(575) : warning 215: expression has no effect
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(575) : error 001: expected token: ";", but found ")"
D:\Program Files\Rockstar Games\GTA San Andreas\eigener SAMP\gamemodes\deathmatch.pwn(575) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
line 574-575:

pawn Код:
SetSpawnInfo(playerid, 1, gPlayerSkinForEver[playerid], x, y, z, angle, 0, 0, 0, 0, 0, 0); // You need to change these values.
    } else if(p_skin == 267 || p_skin == 271 || p_skin == 270 || p_skin == 0 || p_skin == 105 || p_skin = 106 || p_skin = 107) { // This is GROOVE.
Reply
#2

Please guys, please help me!!!
Reply
#3

pawn Код:
SetSpawnInfo(playerid, 1, gPlayerSkinForEver[playerid], x, y, z, angle, 0, 0, 0, 0, 0, 0); // You need to change these values.
    } else if(p_skin == 267 || p_skin == 271 || p_skin == 270 || p_skin == 0 || p_skin == 105 || p_skin == 106 || p_skin == 107) { // This is GROOVE.
Also assign a value to variables x, y, z and angle.
Reply
#4

Ehh, like this? o_O

pawn Код:
new x = (co-ordinates)
No man, that's nonsense! For what are the five 0
Reply
#5

Actually, that is 6 zeros. And if you open wiki and look for the function, you can tell that the 0s are for spawn weapons and their ammo!
Reply
#6

Well, now I'm getting confused!

Every of my players has got his own spawnpoint!

pawn Код:
public OnGameModeInit() {
    SetNight();
    SetGameModeText("***Live your own life as a GangstA***");
    //Ballas
    AddPlayerClass(102, 1974.4895,-1157.0608,20.9505,95.6222, 30, 350, 29, 350, 27, 350); //Ballas1
    AddPlayerClass(103, 1976.7120,-1183.5504,26.0188,98.0542, 22, 350, 34, 350, 29, 350); //Ballas2
    AddPlayerClass(104, 2092.0271,-1166.3419,26.5859,89.4869, 28, 350, 23, 350, 4, 0); //Ballas3
   //Grove
    AddPlayerClass(269, 2486.7598,-1647.5186,14.0703,187.5500, 30, 350, 25, 350, 24, 350); //Smoke
    AddPlayerClass(271, 2459.9001,-1688.4135,13.5280,2.9949, 33, 350, 32, 350, 31, 350); //Ryder
    AddPlayerClass(270,2516.3430,-1674.3085,13.9348,81.6422,32,350,31,350,34,350); // Sweet
    AddPlayerClass(0,2495.4890,-1688.2717,13.7022,5.9233,1,0,29,350,27,350); // CJ
    AddPlayerClass(105,2451.6484,-1642.4531,13.7357,182.6713,28,350,33,350,22,350); // grove1
    AddPlayerClass(106,2413.7170,-1647.2096,14.0119,174.8622,26,350,30,350,23,350); // grove2
    AddPlayerClass(107,2408.6982,-1674.0126,13.6037,356.5973,34,350,30,350,32,350); // grove3
   //Vagos
    AddPlayerClass(108,2571.8352,-1091.2091,66.9639,48.7203,29,350,9,0,31,350); // Vagos1
    AddPlayerClass(109,2569.7373,-1088.5804,67.0079,220.8869,22,350,33,350,30,350); // Vagos2
    AddPlayerClass(110,2576.0371,-1070.5568,69.8322,89.5007,27,350,24,350,32,350); // Vagos3
    return 1;
}
And now with this code, ehm, I can't set those spawnpoints again from new with this following code, I mean:

pawn Код:
SetPlayerSpawn(playerid) { // You don't need to write public at the first, unless you are going to call this callback with a timer.
    new p_skin = gPlayerSkinForEver[playerid];
    if(p_skin == 102 || p_skin == 103 || p_skin == 104) { // This is BALLAS.
    SetSpawnInfo(playerid, 1, gPlayerSkinForEver[playerid], x, y, z, angle, 0, 0, 0, 0, 0, 0); // You need to change these values.
    } else if(p_skin == 267 || p_skin == 271 || p_skin == 270 || p_skin == 0 || p_skin == 105 || p_skin == 106 || p_skin == 107) { // This is GROOVE.
        SetSpawnInfo(playerid, 2, gPlayerSkinForEver[playerid], x, y, z, angle, 0, 0, 0, 0, 0, 0); // You need to change these values.
    } else if(p_skin == 108 || p_skin == 109 || p_skin == 110) { // This is VAGOS.
        SetSpawnInfo(playerid, 3, gPlayerSkinForEver[playerid], x, y, z, angle, 0, 0, 0, 0, 0, 0); // You need to change these values.
    }
    SpawnPlayer(playerid);
    return 1;
}
Reply
#7

samtey, can you explain me what actually you wanna do? maybe I can help
Reply
#8

I wanted something like this:
https://sampforum.blast.hk/showthread.php?tid=273094

Nobody got there what I wanted, maybe u guys know?
Reply
#9

Okay guys, maybe U know what I want!

I want: A player can't betray his gang! When he choosed his gang, skin, he has to play with this skin forever! OK?
Only me as an admin (NOT RCON ADMIN, NORMAL ADMIN) can change his skin whenever he wants! U can help me? PLEAAAASSSSEEEEEEE!!!!
Reply
#10

PLEASE GUYS, I BEG U!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)