[Ajuda] O que esta errado no Code??? (Salvamento de Arquivos)
#4

if(strcmp(cmd, "/setcasa", true) == 0)
{
new ID;
ID = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, 0xFF0000AA, "USO: /setcasa [ID]");
return 1;
}
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
HouseInfo[tmp][SpawnX] = X;
HouseInfo[tmp][SpawnY] = Y;
HouseInfo[tmp][SpawnZ] = Z;
}
if(strcmp(cmd, "/salvardados", true) == 0)
{
if(PlayerInfo[playerid][Admin] >= 4)
{
Casas();
}
return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)