24.06.2010, 20:26
(Sry for my bad English )
I have a problem with my Command.
Two things do not run
one is a variable and the other is a strmid:
This 2 lines do not works:
the variable and the strmid is not running and I know why you can not really help her?
I have a problem with my Command.
Two things do not run
one is a variable and the other is a strmid:
Код:
if(strcmp(cmd, "/kaufen", true ) == 0) { if(INI_Open("Haus.cfg")) { for(new h = 0; h < sizeof(HausInfo); h++) { if(IsPlayerInRangeOfPoint(playerid, 3.0, HausInfo[h][eX], HausInfo[h][eY], HausInfo[h][eZ])) { if(GetPlayerMoney(playerid) < HausInfo[h][Preis])return 1; new Name[MAX_PLAYER_NAME]; GetPlayerName(playerid, Name, MAX_PLAYER_NAME); GivePlayerMoney(playerid, - HausInfo[h][Preis]); SendClientMessage(playerid,FARBE_WEIЯ,"gekauft xD"); HausInfo[h][Vergeben] = 1; strmid(HausInfo[h][Besitzer], Name, 0, strlen(Name), 24); INI_Save(); INI_Close(); return 1; } } } return 1; }
Код:
HausInfo[h][Vergeben] = 1; strmid(HausInfo[h][Besitzer], Name, 0, strlen(Name), 24);