- 0
Problema /houseentrance.
-
Similar Content
-
- 2 answers
- 433 views
-
Problema turf
By Soryn.,
- 3 answers
- 344 views
-
- 2 replies
- 232 views
-
- 1 reply
- 191 views
-
- 4 replies
- 118 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
2pacs
Problemă întâlnită (descriere):Salut, am o problema cu comanda /houseentrance, nu pot seta intrare la casele cu id mai mare de 77.
Ero(area / rile) / warning-(ul / urile):-
Liniile de cod / sursa / script-ul:mai jos
Imagini / Video (optional):-
Aţi încercat să rezolvaţi singur?:nu prea am stiut ce..
[pawn]new HouseInfo[301][hInfo];[/pawn]
[pawn]if(strcmp(cmd, "/houseentrance", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] != 1340)
{
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "SYNTAX: /houseentrance [houseid] - Modifica iesirea");
return 1;
}
new proplev = strval(tmp);
if(proplev > sizeof(HouseInfo) || proplev < 0)
{
SendClientMessage(playerid,COLOR_WHITE,"Nu poti seta o intrare cu un id mai mare de 300.");
return 1;
}
else
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
format(string,sizeof(string),"Entrance of House %d to %f - %f - %f",proplev,X,Y,Z);
ABroadCast(COLOR_YELLOW,string,5);
HouseInfo[proplev][hEntrancex] = X;
HouseInfo[proplev][hEntrancey] = Y;
HouseInfo[proplev][hEntrancez] = Z;
OnPropUpdate();
return 1;
}
}
}[/pawn]
Link to comment
Share on other sites
5 answers to this question
Recommended Posts