21.06.2016, 20:46
Код:
jobtownhall = CreatePickup(1239, 1,361.8299,173.5686,1008.3828, 0);
Код:
C:\Users\Fishy\Desktop\New folder (2)\gamemodes\ROLEPLAY.pwn(94) : error 022: must be lvalue (non-constant)
jobtownhall = CreatePickup(1239, 1,361.8299,173.5686,1008.3828, 0);
C:\Users\Fishy\Desktop\New folder (2)\gamemodes\ROLEPLAY.pwn(94) : error 022: must be lvalue (non-constant)
new PickTest; // Int var main() { PickTest = CreatePickup(1239, 1,361.8299,173.5686,1008.3828, 0); }
const jobtownhall; jobtownhall = CreatePickup(1239, 1,361.8299,173.5686,1008.3828, 0);
new jobtownhall; jobtownhall = CreatePickup(1239, 1,361.8299,173.5686,1008.3828, 0);
This error is shown when the variable is declared as a const.
For example: Код:
const jobtownhall; jobtownhall = CreatePickup(1239, 1,361.8299,173.5686,1008.3828, 0); Код:
new jobtownhall; jobtownhall = CreatePickup(1239, 1,361.8299,173.5686,1008.3828, 0); |
new jobtownhall; jobtownhall = CreatePickup(1239, 1,361.8299,173.5686,1008.3828, 0); //this is /job pickup
C:\Users\Fishy\Desktop\New folder (2)\gamemodes\ROLEPLAY.pwn(93) : error 001: expected token: "-identifier-", but found "-integer value-" C:\Users\Fishy\Desktop\New folder (2)\gamemodes\ROLEPLAY.pwn(94) : error 022: must be lvalue (non-constant)
public OnGameModeInit() { AddStaticPickup(1239, 1,2303.8369,-16.3016,26.4844, 0); // BANK AddStaticPickup(1239, 1, 2273.6565,82.0496,26.4844, 0); //TOWN HALL AddStaticPickup(1239, 1, 2269.5369,-74.4108,26.7724, 0); //police station new jobtownhall; jobtownhall = CreatePickup(1239, 1,361.8299,173.5686,1008.3828, 0); //this is /job pickup DisableInteriorEnterExits(); EnableStuntBonusForAll(0); // Don't use these lines if it's a filterscript GetGameModeText("Blank Script"); AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); return 1; }
#define jobtownhall 1
new 1;
1 = CreatePickup(/* ... */)
Do you have a #define jobtownhall or something? The errors lead me to believe you have something like:
PHP код:
PHP код:
|
#define jobtownhall 1
C:\Users\Fishy\Desktop\New folder (2)\gamemodes\ROLEPLAY.pwn(93) : warning 204: symbol is assigned a value that is never used: "jobtownhall" This is the only error I'm getting at the moment