Guten Tag Community,
bin momentan an einem Haussystem dran und habe hier ein Problem
ocmd:ch(playerid,params[])
{
new Float:X,Float:Y,Float:Z;
new level ,price;
if(sscanf(params,"dd",price,level))return SendClientMessage(playerid,WHITE,"Benutzung: /getcar [Carid]");
GetPlayerPos(playerid,X,Y,Z);
for(new i = 0; i < MAX_HAUSER; i++)
{
Hauser[i][pOwner] = 0;
Hauser[i][pPrice] = price;
Hauser[i][pExitX] = X;
Hauser[i][pExitY] = Y;
Hauser[i][pExitZ] = Z;
Hauser[i][pLevel] = level;
new string[128];
format(string,sizeof(string),"Haus zu verkaufen:\nPreis: %d \nLevel: %d",Hauser[i][pPrice],Hauser[i][pLevel]);
HouseText = Create3DTextLabel(string,WHITE,X,Y,Z, 40.0, 0, 0);
}
CreatePickup(1239,1,X,Y,Z);
return 1;
}
C:\Users\Koray Bircan\Desktop\Selfmade by Koray\gamemodes\selfmadebykoray.pwn(2281) : error 022: must be lvalue (non-constant)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.